Run Script over SSH demo

Example shortcut that demonstrates the capabilities of Run Script over SSH to control your Mac remotely (and Run AppleScript when not triggered remotely).

Actions

shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-run-shortcut.webp
Run Shortcut
Run an shortcut from your shortcut.
shortcuts-action-icon-get-dictionary-from-input.webp
Get Dictionary from Input
Makes a dictionary from the text passed as input. JSON (like {“foo”: “bar”}), key-value pairs (like foo=bar&baz=biz), and XML-based plist are supported.
shortcuts-action-icon-choose-from-list.webp
Choose from List
Presents a menu of the items passed as input to the action and outputs the user’s selection. Prompt The instruction provided when the list is presented. Select Multiple When enabled, multiple items may be chosen from the list.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
shortcuts-action-icon-run-script-over-ssh.webp
Run Script over SSH
Runs a script on a remote computer over SSH.

Related Posts

More From This Folder

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Run%20Script%20over%20SSH%20demo
Link to Open Shortcut
shortcuts://open-shortcut?name=Run%20Script%20over%20SSH%20demo
AppleScript code
tell application “Shortcuts Events” run shortcut “Run Script over SSH demo” end tell

More From The Library


Get way deeper into Shortcuts – become a member.

Browse more