• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes play - pause script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: iTunes play - pause script (From: Kelvin Aitken <email@hidden>)

  • Prev by Date: Re: iTunes play - pause script
  • Next by Date: Re: Selecting newest file in folder
  • Previous by thread: Re: iTunes play - pause script
  • Next by thread: Re: iTunes play - pause script
  • Index(es):
    • Date
    • Thread