Reputation:
In AppleScript I can simply run
tell application "Spotify" to playpause
and Spotify is magically paused. But can I do that in Cocoa? I'm talking built-in Cocoa methods. Even though I could just run the AppleScript file, there has to be a more efficient way to do it.
Upvotes: 0
Views: 375