• 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: Jon Pugh <email@hidden>
  • Date: Fri, 26 Jul 2002 08:07:21 -0700

At 11:37 PM +1000 7/26/02, Kelvin Aitken wrote:
>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?

Use the "reopen" handler instead. It gets called when you double click a running stay open applet.

on reopen
tell app "iTunes"
playpause
end
end

Good luck.

Jon
_______________________________________________
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: Fwd: Modifing Data
  • Next by Date: Re: List sorting dilemma
  • Previous by thread: Re: iTunes play - pause script
  • Next by thread: Fw: Fw: Applescript error -2709 over SSH after hostconfig change
  • Index(es):
    • Date
    • Thread