Re: iTunes play - pause script
Re: iTunes play - pause script
- Subject: Re: iTunes play - pause script
- From: Ron Bishop <email@hidden>
- Date: Fri, 26 Jul 2002 08:47:42 -0500
I haven't been following this thread, but here is what I use with
iTunes 3
tell application "iTunes"
playpause
end tell
I wrote this script into a QuicKey and use (Shift + Enter) to pause and
then unpause iTunes playback with a key stroke.
Ron Bishop
www.daddydoodaa.com
On Friday, July 26, 2002, at 08:37 AM, Kelvin Aitken wrote:
>
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.