Skip to content

Instantly share code, notes, and snippets.

@henrik
Created July 10, 2009 14:47
Show Gist options
  • Save henrik/144570 to your computer and use it in GitHub Desktop.
Save henrik/144570 to your computer and use it in GitHub Desktop.
#!/bin/bash
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 29) using {command down}'"
#!/bin/bash
# Makes Spotify re-Growl the currently playing song by pausing and then playing immediately (inaudibly).
# Assumes Growl is set up to forward notifications over the network.
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 32)' -e 'tell app \"System Events\" to keystroke (ASCII character 32)'"
#!/bin/bash
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 32)'"
#!/bin/bash
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 28) using {command down}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment