Goodies 23: Sort Scripts

MBS Plugin implements a contextual menu command to sort scripts in the Script Workspace for FileMaker on macOS.

We got several challenges here to solve. First this is not like on the script area, where we can just add a custom contextual menu. There is already a FileMaker contextual menu, so we have to intercept the menu and our own entries, which seems to work fine so far. Since the implementation depends on the things we made to show Script IDs, the two features are linked currently.

The next one is to actually do the sort operation. There is not much to leverage except that you can manually reorder them with the mouse. Our plugin can do that by telling you started a drag at one spot and then release it to another spot. You may see the entries moving as far as animations are happening.

Modifier Keys
Sort by name ascending.
Sort by name descending
Sort by ID ascending
⇧ ⌥ Sort by ID descending

Here is a collage showing all the variants:

Sorting by ID will basically sort them by creation date.

This function is enabled by default and available on macOS only.


The contextual menu offers commands to collapse all folders in the list or expand all of them.

We can find duplicate names. This may expand all folders to get a list of all the names. The duplicate entries are then selected.

Links for MBS 23 Auto Complete