Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You're right. Modify like this...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You're right. Modify like this...
Authored by: Xeo on Apr 25, '04 10:29:38PM
You can just find out if iTunes is playing before you mess with it. Pause if it's playing, then play again when you're all done.
tell application "iTunes"
	set isPlaying to player state is playing
end tell

if isPlaying then
	tell application "iTunes" to pause
end if

-- later, after announcing the e-mail

if isPlaying then
	tell application "iTunes" to play
end if


[ Reply to This | # ]