The last of the options above, FastScripts Lite, is the one that comes for free, and also the easiest method, so I'll use it in this answer.Įnter the above "activate.end tell" snippet into macOS Script Editor.app and save the resulting script to ~/Library/Scripts/Applications/Safari/Save Bookmarks for Current Window Tabs.scpt. Note: it is no longer possible to assign a shortcut key to an item in the macOS Script menu, so I've not included that method of calling the script.
#Keyboard maestro license multiple software
There are a number of different ways to do this and choice will depend on personal preference and/or software at hand:
Note: you could add additional AppleScript to manipulate and/or dismiss the confirmation dialog I'll leave such changes as an exercise for the reader.įinally, we need to add a shortcut key to access the menu. Running this in, say, macOS Script Editor.app will remotely click the referenced menu item and display the expected conformation dialog. The works for both Safari and Safari Technology Preview, which is nice. The AppleScript snippet needs to be dressed up a little more to be useful: activate application "Safari"Ĭlick menu item 8 of menu 1 of menu bar item "Bookmarks" of menu bar 1 I made a small edit to the snippet to reference only the Bookmarks menu item by name.
In UI Browser.app choose your Target app, use the column browse to find the menu item you are interested in, then use the AppleScript dropdown to copy the required snippet to your clipboard (or press Alt+ Cmd+ T).
#Keyboard maestro license multiple free
To come up with this particular incantation I used UI Browser.app (there's a free Trial). OK, so the AppleScript required to click that menu item is quite simple: click menu item 8 of menu 1 of menu bar item "Bookmarks" of menu bar 1