Steps to reproduce:
- Open AppleScript editor
-
Paste the following:
tell application "Spotify"
playpause
end tell
- Script -> Run
Expected result:
Spotify toggles playing
Actual result:
error "The variable playpause is not defined."
Root cause:
Scripting definition file, Spotify.sdef, has been moved to the "applescript" subdirectory, but the path in Info.plist hasn't been updated.
Workaround:
Patch Spotify.app/Contents/Info.plist with:
51c51
< <string>Spotify.sdef</string>
---
> <string>applescript/Spotify.sdef</string>