iOS and Mac Shortcut

I adapted one of my scripts to run on both macOS and iOS without having to duplicate the script, and thought I would share in case this helps anyone else,. The right side shows the script is an Mac service, and it has a keyboard combo. This means on the Mac I can simply press ⌃⌥⌘-Y and the shortcut runs. The script that runs just adds the URL to a file on the server, but of course that could be anything at all. The key changes for me were adding the device model, and changing the “URL” smart variable to the “if result” in the actual script call and the ssh options (not shown).

Add YouTube

1 Like