Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Created December 28, 2014 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorentzca/a1fa45467be9eb462d3a to your computer and use it in GitHub Desktop.
Save lorentzca/a1fa45467be9eb462d3a to your computer and use it in GitHub Desktop.
on run argv
tell application "iTunes"
set command to first item of argv
if command = "play" then
play
else if command = "pause" then
pause
else if command = "next" then
next track
else if command = "prev" then
previous track
else
return "command not found"
end if
end tell
end run
@lorentzca
Copy link
Author

$ osascript itunes_controller.scpt pauseとか

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment