Created
August 10, 2012 21:58
Revisions
-
aaronsw created this gist
Aug 10, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/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