3 ms·
So, is this basically a tray editor for .sh files that just contain a list of applications/shortcuts to run?
by idle_zealot 2y ago
So, is this basically a tray editor for .sh files that just contain a list of applications/shortcuts to run?
- msephton 2y agoNo :) but that's a close approximation. The editor is a native macOS window that's kind of like list view in a file manager, or a spreadsheet, or a little folder...depending on your point of view. Plus some menu commands and keyboard equivalents. The items in each list are macOS "bookmarks" which are a type of authorised/verified/secure alias (in fact, they're still called aliases in the code) that have been around for about 10–15 years. They contain the path plus a bunch more info. As macOS becomes more locked-down the recommended way of accessing files is to retrieve these bookmarks through the normal layers of system permissions and security. Without the bookmarks, for example just using plain text paths, I would not be able to show the full images in Quick Look or easily launch the list items. A key benefit is that the bookmark will still resolve if the file is moved somewhere else on the same disk, or even to a different volume! Here's more info on file bookmarks: https://eclecticlight.co/2020/05/21/bookmarks-a-type-of-alias-their-access-and-use/ https://eclecticlight.co/2020/05/21/bookmarks-a-type-of-alia... I store the items as JSON in the saved file, simply because I prefer it to XML (which is the main/default option). I wanted the files to still be human readable and editable to a degree. The files are launched using the default app specified by that file, so it can be changed on a per-file basis. Individual images might open in an image editor, image viewer, app to run OCR, script to run OCR on it, etc.