• 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 Dictionary: Player State = Missing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes Dictionary: Player State = Missing


  • Subject: iTunes Dictionary: Player State = Missing
  • From: Jakob Peterhänsel <email@hidden>
  • Date: Thu, 27 Feb 2003 04:49:55 +0100

Hi All.

Just working on some small scripts for Clicker, and found myself in
need of knowledge regarding iTunes 'player state'.

Open Dictionary in SE, looking... hmmm....

I can't find it, though it seem to be one of the most used features of
iTunes Scripting...

Mac OS X 10.2.4
GUI Scripting + SE 2.0b installed.

I was trying to test states:

tell application "iTunes"
if player state is (rewind) then beep
end tell

State 'rewind' and 'fast forward' does not test, but fire the command
instead!!!
Bug?????

Had to do it like this:

tell application "iTunes"
set myState to player state
if myState is playing then
pause
return "Pause"
else if myState is paused then
play
return "Play"
else if myState is stopped then
play
return "Play"
else
resume
return "Resume"
end if
end tell

Jakob Peterhdnsel

'I don't have to try to be a sex bomb, I am one!'
- Kylie Minogue

Email: email@hidden
AIM: Marook
Phone: +45 40163806
_______________________________________________
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 Dictionary: Player State = Missing
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: Safari - Clear History Cache
  • Next by Date: Re: RA Connect
  • Previous by thread: Problems with AS and Carbon apps (dictionary invisible a.o.)
  • Next by thread: Re: iTunes Dictionary: Player State = Missing
  • Index(es):
    • Date
    • Thread