Skip to content

Instantly share code, notes, and snippets.

@aaronsw
Created August 10, 2012 21:58

Revisions

  1. aaronsw created this gist Aug 10, 2012.
    16 changes: 16 additions & 0 deletions podspeed
    Original 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
    7 changes: 7 additions & 0 deletions qtspeed
    Original 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
    13 changes: 13 additions & 0 deletions unpodspeed
    Original 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