Re: iTunes play - pause script
Re: iTunes play - pause script
- Subject: Re: iTunes play - pause script
- From: Kelvin Aitken <email@hidden>
- Date: Fri, 26 Jul 2002 23:37:07 +1000
- Organization: Marine Themes Stock Library
John Gnaegy wrote:
So, you can do this instead. Just leave out the coercion to text.
>
>
tell application "iTunes"
>
if player state = playing then
>
pause
>
else
>
play
>
end if
>
end tell
>
>
---
>
John Gnaegy
>
colorsync
The above script is basically the same as the one I wrote:
tell application "iTunes"
set x to the player state as text
if x = "playing" then
pause
else
play
end if
end tell
I found that what was causing the problem was saving the applet with the "Stay Open" option selected. Both of the above scripts work fine as long as the applet closes each time. I assume that keeping an applet open speeds up the operation. Is there some way to make this script work with an open applet?
Kelvin
_______________________________________________
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.