How to do scheduling playlist on iPhone manually?

Asked By 30 points N/A Posted on -
qa-featured

I like hearing music. I have some playlist. I hear different playlist at different time and days. So I want to do scheduling playlist on iPhone. Is there any way to do so manually with all of my existing playlists? Please help me.

SHARE
Answered By 20 points N/A #184729

How to do scheduling playlist on iPhone manually?

qa-featured

You can put this code into a file named playPlaylist.js on your hard drive somewhere like C:Scripts:

 

var 	iTunesApp = WScript.CreateObject("iTunes.Application");
var	source = iTunesApp.LibrarySource;
var	playLists = source.Playlists;

if (playLists != null) {
	var numPlaylists = playLists.Count;
	if (numPlaylists >= 0) {
		/*  Set the Playlist Name here  */
		var	playList = playLists.ItemByName("Recently Played");
		if (playList != null) {
			playList.PlayFirstTrack();
		}
		else {
			WScript.Echo("Failed to find specified playlist");
		}
	}
	else {
		WScript.Echo("There are no playlists to search");
	}
}
else {
	WScript.Echo("Failed to find playlists in MainLibrary");
}

Then create a Play.bat file with this code:

@echo off
C:
cd C:scripts
cscript /nologo playPlaylist.js

Then save it in the same directory as the playPlaylist.js script and go to the control panel and schedule the play.bat file to run at the time you wish.

Login/Register to Answer

Related Questions