alfred-spotify-controls icon indicating copy to clipboard operation
alfred-spotify-controls copied to clipboard

Spotify just updated and the scripts stopped working

Open justin808 opened this issue 9 years ago • 7 comments

Latest build of Spotify and this no longer works:

on alfred_script(q)
    tell application "Spotify"
        playpause
    end tell
end alfred_script

Anybody know how to troubleshoot?

screenshot_3_14_15__9_11_pm

justin808 avatar Mar 15 '15 07:03 justin808

Solution src: community.spotify.com

Just right click spotify.app, select show contents, and use any text editor to edit the Info.plist file

// old line (towards the bottom)
<string>Spotify.sdef</string>
// new line
<string>applescript/Spotify.sdef</string>

Then restart spofity and Alfred 2

matbrady avatar Mar 16 '15 13:03 matbrady

@matbrady did this work for you in the most recent release 1.0.2.6.g9977a14b? It worked for me in the previous version, but didn't work with this one.

bradical avatar Mar 16 '15 21:03 bradical

You definitely have to quick and restart both spotify and alfred. No computer restart is needed.

justin808 avatar Mar 17 '15 01:03 justin808

Nice. Restarting Alfred did the trick. I restarted Spotify multiple times to no avail but didn't realize Alfred restart was necessary. Thanks!

bradical avatar Mar 17 '15 02:03 bradical

@matbrady This just broke again:

https://community.spotify.com/t5/Live-Ideas/Bring-back-Applescript-support/idc-p/1068934#M31916

I'm guessing Spotify updated again, and re-doing the fix to the plist file and restarting got this working again.

justin808 avatar Mar 24 '15 05:03 justin808

@justin808 yeah I noticed. It's unfortunate we have to patch this every time they push an update that doesn't enable AppleScripts.

matbrady avatar Mar 24 '15 10:03 matbrady

Looks like they'll be patching it in a future desktop version: https://community.spotify.com/t5/Live-Ideas/Bring-back-Applescript-support/idc-p/1068934#M31916

On Tue, Mar 24, 2015 at 6:39 AM, Mat Brady [email protected] wrote:

@justin808 yeah I noticed. It's unfortunate we have to patch this every time they push an update that doesn't enable AppleScripts.

Reply to this email directly or view it on GitHub: https://github.com/phpfunk/alfred-spotify-controls/issues/35#issuecomment-85444915

bradical avatar Mar 24 '15 12:03 bradical