Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > netTunes > General
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Currently Active Users Viewing This Thread: 7 (0 members and 7 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:04 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.