Created
July 10, 2009 14:47
-
-
Save henrik/144570 to your computer and use it in GitHub Desktop.
Spotify version of http://henrik.nyh.se/2008/09/using-apple-media-keys-over-the-network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 29) using {command down}'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ssh mini "osascript -e 'tell app \"Spotify\" to activate' -e 'tell app \"System Events\" to keystroke (ASCII character 32)'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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