iTunes play - pause script
iTunes play - pause script
- Subject: iTunes play - pause script
- From: Kelvin Aitken <email@hidden>
- Date: Fri, 26 Jul 2002 16:03:22 +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 fine in the editor but when made into an applet
it pauses iTunes successfully but refuses to restart play mode.
What obvious thing am I missing here?
Kelvin.
PS I am in digest mode so feel free to email directly.
_______________________________________________
colorsync-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/colorsync-users
Do not post admin requests to the list. They will be ignored.