AFAIK you can only do this using UI scripting, here is one of the ways to do it : tell application "System Events" to tell process "iTunes" click button 4 of window 1 end tell