Created
December 2, 2009 00:48
-
-
Save brycethornton/246798 to your computer and use it in GitHub Desktop.
Simple Applescripts To Control iTunes
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
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". |
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
tell application "iTunes" | |
repeat with s in sources | |
if (kind of s is iPod) then update s | |
end repeat | |
end tell |
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
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