• 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
iTunes toggle script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes toggle script


  • Subject: iTunes toggle script
  • From: Kelvin Aitken <email@hidden>
  • Date: Thu, 25 Jul 2002 17:35:32 +1000
  • Organization: Marine Themes Stock Library

Why is it so. 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?

Kelvin.

PS I am in digest mode so feel free to email directly.
_______________________________________________
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.

  • Follow-Ups:
    • Re: iTunes toggle script
      • From: "Paul F. Henegan" <email@hidden>
  • Prev by Date: Re: quicksorts [Re: List sorting dilemma]
  • Next by Date: Network Setup Scripting problem
  • Previous by thread: Re: :yet quicker sort [Re: List sorting dilemma]
  • Next by thread: Re: iTunes toggle script
  • Index(es):
    • Date
    • Thread