Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Listen to podcasts at 1.5x speed' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Listen to podcasts at 1.5x speed
Authored by: mfc2mfc2 on May 13, '06 02:22:42PM

I was using the above AppleScript on my Mac. I am moving my iTunes library to Windows XP, so I created the below script to do the same thing for iTunes on Windows.

Copy and paste the code into NotePad, save as "1.4SpeedPodcast.js," and double-click the file to execute it. You need to have Windows Script support installed. This is downloaded from Microsoft.com if you don't already have it.


//Editor: Mike Chabot
//Date: May 12, 2006
//Purpose: Play the currently playing podcast or the highlighted podcast at 1.4 speed in QuickTime

var iTunes = WScript.CreateObject("iTunes.Application");
var qt = WScript.CreateObject("QuickTimePlayerLib.QuickTimePlayerApp.1");

if(iTunes.PlayerState != 0) {//0=stopped, 1=playing, 2=ff, 3=rw
	var track=iTunes.CurrentTrack;
	iTunes.Stop();
} else {
	//selected tracks are the ones highlighted, the current track is the one playing or the one loaded
	if(iTunes.SelectedTracks) {
		var track=iTunes.SelectedTracks.Item(1);
		track.Play(); //update the played status
		iTunes.Stop();
	} else if(iTunes.CurrentTrack) {
		var track=iTunes.CurrentTrack;
	} else {
		WScript.Echo('error');
		WScript.Quit(1);
	}
}

iTunes.BrowserWindow.Minimized=1; //minimize iTunes window
qt.Players.Item(1).OpenURL(track.Location);
qt.Players.Item(1).QTControl.Movie.TimeScale=1; //set QT to use seconds for Time attribute.
qt.Players.Item(1).QTControl.Movie.Time=track.BookmarkTime;
qt.Players.Item(1).QTControl.Movie.AudioVolume=iTunes.SoundVolume / 100; //divide by 100 for QT compatibility
qt.Players.Item(1).QTControl.Movie.Play(1.4); //Play at 1.4x speed


[ Reply to This | # ]