Skip to content

Instantly share code, notes, and snippets.

@brycethornton
Created December 2, 2009 00:48
Show Gist options
  • Save brycethornton/246798 to your computer and use it in GitHub Desktop.
Save brycethornton/246798 to your computer and use it in GitHub Desktop.
Simple Applescripts To Control iTunes
Copy the code and paste it into "Script Editor". You can find this in "/Applications/AppleScript/". Save the script.
To run the script from the command line just type "osascript /path/to/your/script.scpt".
tell application "iTunes"
repeat with s in sources
if (kind of s is iPod) then update s
end repeat
end tell
tell application "iTunes"
activate
updateAllPodcasts
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment