Created
August 10, 2012 21:58
-
-
Save aaronsw/3318395 to your computer and use it in GitHub Desktop.
Tools I use to listen to podcasts in iTunes
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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