Update: will be remote on https://chat.indieweb.org.
I will be at https://hwc.dougbeal.com/event/2019-12-11-hwc/ next week. Hope to see you there. @SteveStreza @TimSwast @altsalt @funwhilelost @rrrrrrrix @codynhat @phedhex @dangerdave
Amazing macro photography and videography by Dr. Andreas Kay. “These ants are waiting to collect little drops of Honeydew, which is the prettiest name for a turd in nature”
A shareable macOS remote control shortcut! It is still pretty rough.

Requires 2 shortcuts. One parses the JSON at JSON Page shortcuts-simple-remote-commands to generate commands. The other provides selection menus and then runs the selected command on the selected host.

Future:

  • use a github repo to host json.
  • Display name for selection rather than command.
  • Restore option to run a shortcut for more complex commands
  • Examination of JSON Fetching Shortcut

Install both shortcuts:

  1. Fetch JSON File (can be replaced with a shortcut that returns a List of Dictionaries (see JSON).
    Fetch https://dougbeal.com/shortcuts-simple-remote-commands/ v1

  2. Select host and command, then run command on host via SSH.
    macOS Remote Automation v1

Then

  1. Open macOS Remote Automation v1 and modify LIST to have your hostnames and the DICTIONARY to have your username.
  2. Find SHORTCUTS Run and select Fetch https://dougbeal.com/shortcuts-simple-remote-commands/ v1

See Remote control your Mac with your iPhone and SSH Key Shortcuts to set up your Mac for remote access.

#NovBaD #NaBloPoMo #challenge4of30 #challenge #automation #shortcuts #iOS #macOS #SSH

Things to do after Remote control your Mac with your iPhone and SSH Key Shortcuts is set up.

  • open a livestream in VLC via command line
    open -a VLC.app "http://stream.relay.fm:8000/stream"
    open -a "Quicktime Player" may also work (only if stream is currently live)
    useful livestream URLs

  • mute macOS volume via command line
    osascript -e 'set volume output muted true'
    osascript -e 'set volume output muted false'
  • start an iTunes playlist with shuffle on
    osascript -e 'tell application "iTunes" to shuffle enabled' -e 'tell application "iTunes" to play playlist named "best"'
    osascript -e 'tell application "iTunes" to stop'

    Future ideas

  • start/stop Quicktime screen recordings on macOS via iOS shortcuts. Running into saving problems. Also complex enough that AppleScript files will be downloaded to Mac.
  • clipboard via SSH. Sometimes Handoff clipboard fails me, would be nice to have a backup. Should be able to go either way
  • If there is interest, I might try to package these up more as a sharable shortcut

#NovBaD #NaBloPoMo #challenge3of30 #challenge #automation #shortcuts #iOS #macOS #SSH #AppleScript #Podcasts