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 movie
        set ts to time scale of my_movie
        set current time of my_movie to my_seconds * ts
        set rate of my_movie to 1.5 -- starts playing
end tell

And here's the AppleScript to resume at normal speed in iTunes:

(* Resume normal speed in iTunes after using
Play this song at 1.5x
*)
tell application "iTunes"
        set my_track to location of current track
end tell

tell application "QuickTime Player"
        set my_movie to first movie
        set ts to time scale of my_movie
        set my_seconds to (current time of my_movie) / ts
        close my_movie
end tell

tell application "iTunes"
        set player position to my_seconds
        play
end tell

louie
[email protected]




Reply via email to