[HOW TO] Autoplay itunes on wake

here is the applescript
open script editor and paste this in, save it as iTunesWake.scpt (compiled script)

Code:
tell application "Finder"
	if processes contains {process "iTunes"} then
		-- iTunes is running
		tell application "iTunes"
			set vol to sound volume as number
			set sound volume to 0
			back track
			play
			repeat with i from 1 to vol
				set sound volume to i
				set i to i + 1
				delay 0.4
			end repeat
		end tell
	end if
end tell
 
Back
Top