Hi, I have been meaning to ask if this script was to speed up or slow down a track? Seems to me it would be to speed up the track and if that is the case, would you use a minus symbol in front of the 1.5 to slow it down?

tnx


Scott Howell
[email protected]



On Jan 19, 2009, at 1:04 AM, louie wrote:

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