View Single Post
  #5  
Old 05-23-2006, 03:58 PM
MDLarson MDLarson is offline
Registered User
 
Join Date: May 2006
Posts: 3
Well, to round out my little setup, I realized I needed to ensure that iTunes started up with the server should the server ever need a reboot. So, I...
1) Set my account to automatically log in on startup (I don't think iTunes, much less netTunes can run as a service)
2) Created an Applescript that automatically opens iTunes and starts my On-Hold playlist (adapted from the Startup iTunes-Some Playlist script from Doug's Scripts)

Here's the script I came up with:
Code:
-- Set the playlist name
set startup_playlist to "Phone System On-Hold"

tell application "iTunes"
	launch
	stop
	set the_playlist to user playlist startup_playlist
	
	-- Turn shuffle off
	set shuffle of the_playlist to false
	
	-- Select playlist in iTunes
	set view of front window to the_playlist
	
	-- Start playing!
	play the_playlist
	
	-- Turn repeat on
	set song repeat of current playlist to all
	
end tell
Reply With Quote