I would like to distribute a Shortcut with my AppleScript applet (currently the work is done by an Automator Service). I have two questions:
Is it possible to automate the installation for users ? It seems that the only way a shortcut can be installed is via the Shortcuts app. So, when they ask for the Shortcut to be installed, the app must be opened and then users have to respond to the install shortcut dialog and, at least, click on "Add Shortcut".
- Can that process be automated ?
A shortcut can be run from a URL, which is very useful. The URL looks like this:
shortcuts://run-shortcut?name=[name of shortcut]
However, running a shortcut from a URL always opens the Shortcuts app before running the shortcut. This breaks my code which is expecting a web browser to be active.
- Is there a way of using at the shortcuts URL scheme run the shortcut in place i.e. without opening the shortcuts app ? Or, can the URL scheme be used to call the Shortcuts Event app ?
Thanks.