ask for help: who know the state of RealPlayer when playing

RealPlayer10.1.0

I checked all the state in the dictionary, no matched.

basiclly i want below code works

tell application "RealPlayer"
	if state of player 0 is not playing then
		play
	else
		pause
	end if
end tell

Model: mackbook701
AppleScript: 1.10.7
Browser: Firefox 2.0.0.6
Operating System: Mac OS X (10.4)

(* from the dictionary, the state of the player can be... contacting/loading/not loaded/paused/playing/stopped *)

tell application "RealPlayer"
	if (state of player 1) is not playing then
		play
	else
		pause
	end if
end tell

thanks, but change 0 to 1 not work on my machine either

I have RealPlayer 10.1.0 just like you and AppleScript version 1.10.7 too, so I’m not sure why it’s not working for you. I’m on a PPC G5… I see you’re on an intel mac… maybe that’s the reason?

You do have a movie open in real player when you try this right? :slight_smile:

sure did. maybe i should file a bug against rm/osx. any place recommend?