iTunes toggle script
iTunes toggle script
- Subject: iTunes toggle script
- From: Kelvin Aitken <email@hidden>
- Date: Thu, 25 Jul 2002 17:35:32 +1000
- Organization: Marine Themes Stock Library
Why is it so. I made this script:
tell application "iTunes"
set x to the player state as text
if x = "playing" then
pause
else
play
end if
end tell
which is intended to pause the application in the background if it is playing or start
playing if it is paused. The script works find in the editor but when made into an applet
it pauses but refuses to restart playing.
What obvious thing am I missing here?
Kelvin.
PS I am in digest mode so feel free to email directly.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.