iTunes Dictionary: Player State = Missing
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.