I'm trying to pause/unpause QuickTime Player with a little dictation command:
on run activate application "QuickTime Player" tell application "System Events" click "play/pause" of window 1 end tell end run
When I test this, I get the error message
Can’t get "play/pause" of window 1. Access not allowed. Is there any way around this?