Adapt some iTunes scripts for RealPlayer?
A couple of them I changed the application name in the scripts from iTunes to RealPlayer & work fine:
+tell application "RealPlayer" to pause+ & +tell application "RealPlayer" to play+
(Although they give a 'missing value' message at the bottom of Script Editor).
A couple that don't work by just changing the name of the app are Play/Pause (toggle) & Mute
Here are the iTunes scripts for those:
tell application "iTunes"
if player state is playing then
pause
else
play
end if
end tell
And
tell application "System Events" to if (application processes whose name is "iTunes") is not {} then ¬
tell application "iTunes" to set mute to not mute
Any ideas how I could get these to work (or something similar) for RealPlayer?
Power Mac G5 Dual 2.3, 4.5 GB RAM, 20" ACD | MacBook Pro 2.0 15" 2 GB RAM, Mac OS X (10.5.2)