3

I'm new to AppleScript and Automator, I've reached to stop and play next and previous track in Spotify, here's what I use inside the AppleScript:

tell application "Spotify" to playpause

for play/pause^.

tell application "Spotify" to next track
tell application "Spotify" to previous track

for next and previous track^.

My question is, how can I know what else I can do with Spotify (or any other app) and automator, what any other word can I write instead "playpause", "next track" and "previous track". Thanks.

3

Automator and AppleScript are two very different things.

  • For Automator actions for a specific app, search for the name of the app in the Actions search bar.

  • For AppleScript, open the Script Editor, then open the dictionary of the app by pressing ⇧⌘O and selecting the app. Apps not in the list probably don't have an AppleScript dictionary.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .