Skip to content

Instantly share code, notes, and snippets.

@aaronsw
Created August 10, 2012 21:58
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 aaronsw/3318395 to your computer and use it in GitHub Desktop.
Save aaronsw/3318395 to your computer and use it in GitHub Desktop.
Tools I use to listen to podcasts in iTunes
#!/usr/bin/osascript
on run argv
tell application "iTunes"
pause
set my_track to location of current track
set my_seconds to player position
end tell
tell application "QuickTime Player"
open my_track
set my_movie to first document
set current time of my_movie to my_seconds
set rate of my_movie to (item 1 of argv) -- starts playing
end tell
end run
#!/usr/bin/osascript
on run argv
tell application "QuickTime Player"
set rate of first document to (item 1 of argv) -- starts playing
end tell
end run
#!/usr/bin/osascript
on run argv
tell application "QuickTime Player"
pause first document
set my_seconds to current time of first document
end tell
tell application "iTunes"
set player position to my_seconds
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment