Created
December 29, 2011 05:43
-
-
Save CarlQLange/1532172 to your computer and use it in GitHub Desktop.
This file contains 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
Line 2 below breaks, because of the single-quote in the song title. Bash is sucky and doesn't allow | |
backslash escaping for that, and doing the '"'"' solution (as documented here | |
http://stackoverflow.com/questions/1250079/bash-escaping-single-quotes-inside-of-single-quoted-strings) | |
doesn't work because it's already in an applescript string. Best would be a general solution. | |
osascript -e 'tell application "iTunes" | |
play track "Rory's First Kiss (Ryeland Allison remix)" | |
end tell"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Funnily enough, I was actually looking at something similar a few minutes ago: https://github.com/tkazec/omfgupgrade/blob/master/build.sh