Play List Scheduler?

Hi,

I am looking for a way to set schedules for playlists. Set the time of day to play a specific playlist automatically.

I found some software called Bossa that seems to do this but, there is no ability to use the existing iTunes playlists...would ave to recreate them manually again.

I really want a way to use the existing playlists.

Any suggestions?

Thanks
David

Windows XP Pro

Posted on Jan 16, 2008 5:34 PM

Reply
3 replies

Jan 16, 2008 7:25 PM in response to dmoss11

This VBScript will do it. Create a shortcut to it with the argument being the name of the playlist you want to playlist. (i.e. the "Target" will be 'some folder pathitunes playplaylist.vbs" playlistname') You'll have to use a scheduling app (e.g. the built-in "Scheduled Tasks" ) to run it at the time you want.

Right-click and save as this link:
http://home.comcast.net/~teridon73/itunesscripts/itunesplayplaylist.vbs

Or copy and paste the code below into a text file and name it with a ".vbs" extension

Option Explicit
Dim iTunes ' iTunes.Application object used to access the iTunes application.
Dim playlists
Dim playlistName
Dim playlist
Dim arglist
Dim args
Dim arg
Dim i
On Error Resume Next
Set args = WScript.Arguments
Set arglist = wscript.arguments
If arglist.Count = 0 Then
wscript.echo "You must provide a playlist name"
wscript.quit
End If
playlistName = arglist.item(0)
Set iTunes = CreateObject("iTunes.Application.1")
Set playlists = iTunes.LibrarySource.Playlists
Set playlist = playlists.ItemByName(playlistName)
If Len(playlist.Name) = 0 Then
wscript.echo "No playlist found by name " & playlistName
wscript.quit
End If
iTunes.BrowserWindow.SelectedPlaylist = playlist
iTunes.Stop
iTunes.Play

Jan 17, 2008 2:01 AM in response to Robert Jacobson1

Hey Robert...

thanks al lot. I will give it a try...

So, all I would have to change in the script itself is add the name of my playlist and then save the script using the file name provided: itunes playplaylist.vbs or can i identify the particular script with a more customized name?

I will have several playlists I want to play at different times of day...

so could I call one script playlist1 itunes_playplaylist.vbs and another playlist2 itunes_playplaylist.vbs etc

then I also create a shortcut anywhere with the target pointing at my script file (wherever it is?)

or do I just set up the task scheduler and point it directly at my script file and schedule it?

thanks again... sorry but I have never been very good with understanding scripts...

Dave

Jan 17, 2008 3:56 AM in response to dmoss11

{quote}
So, all I would have to change in the script itself is add the name of my playlist and then save the script using the file name provided: itunes playplaylist.vbs or can i identify the particular script with a more customized name?{quote}
No, do not modify the script.

Create as many shortcuts to the script as you want. For each shortcut, right-click and select "Properties". On the "General" tab, in the "Target" box, add the name of the playlist you want onto the end. If the playlist name has spaces, use quotes:<pre>
... Desktop\itunes playplaylist.vbs" "playlist name"</pre>

You can change the names of the shortcuts to whatever you want.

Then use the Scheduled Tasks folder to "Add a Scheduled Task". Browse to the shorcut, then set your schedule.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Play List Scheduler?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.