Re: iTunes toggle script
Re: iTunes toggle script
- Subject: Re: iTunes toggle script
- From: "Paul F. Henegan" <email@hidden>
- Date: Sun, 28 Jul 2002 07:59:11 -0400
on 25.07.2002 03:35, Kelvin Aitken at email@hidden wrote:
>
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?
Hi Kevin,
It works fine here [OS 9.1, AS 1.8.3, iTunes 2.0].
HTH,
paul
--
Paul F. Henegan
<email@hidden>
_______________________________________________
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.