Help Wizard

Step 1

NEXT STEP

New Mac Update: AppleScript support removed

Solved!

New Mac Update: AppleScript support removed

The new version released for Mac (1.0.1.805.gd2412973) has had its support for AppleScript removed. I had written scripts to implement functionality that allowed me to control my music using headphone controls.

 

Can you please bring this AppleScript support back?

 

And in future, can you stop removing usable features without any notice?

Reply

Accepted Solutions
Marked as solution

Calm down, it's glitch in .plist, it's easily fixable before official fix. Just right click spotify.app and select show contents, and use text editor..

 

https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Apple-scripting-broken-in-1-0-1-988-g8f1...

 

Just change:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>Spotify.sdef</string>

to:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>applescript/Spotify.sdef</string>

View solution in original post

Marked as solution

Good news!

 

Apple script support will be coming back in a future update!

 

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

 

"Status changed to: Watch this space


Hey guys, this feature will be in a future Desktop update. We'll update this post here when we have more news. Thanks!"
MattSudaSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

19 Replies

Same here. I use AppleScripts in my Alfred workflows to quickly control Spotify and now they're all busted. Such a bummer.

same here. recent update to 1.0.1.1060.gc75ebdfd broke applescripts from https://github.com/jacktams/Spotify-Applescripts

Dang, me too... I also use applescripts! Please help!!

Get PlayFader on the Mac App Store
The only Spotify/iTunes controller that will FADE in/out your music!
www.sick-pillow.com/playfader
Marked as solution

Calm down, it's glitch in .plist, it's easily fixable before official fix. Just right click spotify.app and select show contents, and use text editor..

 

https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Apple-scripting-broken-in-1-0-1-988-g8f1...

 

Just change:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>Spotify.sdef</string>

to:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>applescript/Spotify.sdef</string>

Perfecto!!  Thanks, worked like a charm and allowed my ScreenSleeves to work properly again!


@vjarvens wrote:

Calm down, it's glitch in .plist, it's easily fixable before official fix. Just right click spotify.app and select show contents, and use text editor..

 

https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Apple-scripting-broken-in-1-0-1-988-g8f1...

 

Just change:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>Spotify.sdef</string>

to:

    <key>NSAppleScriptEnabled</key>
    <true/>
    <key>OSAScriptingDefinition</key>
    <string>applescript/Spotify.sdef</string>


 

Side note, I had to restart Alfred2 as a last step before it began working again.

Note, for some reason the 'play track' command still does not work, even after pointing to the correct dictionary.

Marked as solution

Good news!

 

Apple script support will be coming back in a future update!

 

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

 

"Status changed to: Watch this space


Hey guys, this feature will be in a future Desktop update. We'll update this post here when we have more news. Thanks!"
MattSudaSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Hello all,

 

I was pointed here from the Skip Tunes support site since the change breaks their functionality.

 

I was trying to implement the fix, but the contents of my plist file don't have AppleScript anywhere. The entire file contents are below:

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleExecutable</key>
	<string>Spotify</string>
	<key>CFBundleIconFile</key>
	<string>Icon.icns</string>
	<key>CFBundleIdentifier</key>
	<string>com.spotify.client</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>Spotify</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>1.0.1.935.g010041b2-97</string>
	<key>CFBundleShortVersionString</key>
	<string>1.0.1.935.g010041b2</string>
	<key>LSMinimumSystemVersion</key>
	<string>10.6.0</string>
	<key>NSMainNibFile</key>
	<string>MainMenu</string>
	<key>NSPrincipalClass</key>
	<string>NSApplication</string>
	<key>NSSupportsAutomaticGraphicsSwitching</key>
	<true/>
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Viewer</string>
			<key>CFBundleURLIconFile</key>
			<string></string>
			<key>CFBundleURLName</key>
			<string>Spotify Media</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>spotify</string>
			</array>
		</dict>
	</array>
</dict>
</plist>

 Is there a version skew?

 

Thanks for any enlightenment you can provide.

 

 

Markie

For less techy Spotify users (and anyone who loves convenience): here's a little tool I wrote that automates the workaround posted around the net: http://dangercove.github.io/Spotify-AppleScript-Patch/.

 Looks like the latest Spotify version has reinstated the AppleScript library. Thanks for fixing!

Back in version 1.0.3:

 

https://community.spotify.com/t5/Help-Desktop-Linux-Mac-and/Release-Notes-Spotify-for-Desktop-1-0-3/...

MattSudaSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Did they fix auto play in the latest version? Was a big part of what I used AppleScript for. Software is useless to me without it.

1.0.6.80.g2a801a53 just broke applescript

 

I applied the fix for editing the Info.plist

 

from

<string>Spotify.sdef</string>

 

to

<string>applescript/Spotify.sdef</string>

 

but that seems to no longer work (unless the computer needs restarting).

 

I'm using the alfred workflow to control spotify. 

 

Any workaround???

You shouldn't need to make any changes, as the bug was fixed in Spotify. Make sure you're running the latest version. You can delete what you have and re-download the installer if you're not sure.

 

Good luck,

 

 

Markie

I've been tinkering with a small project relying on the applescript integration from time to time over a year or so, and it seems like i've stumbled upon yet another couple of issues. 

 

  • Player position seems to return the position in miliseconds rather than seconcs, as specified in the documentation (which is also how it worked previously).
  • Artwork doesn't seem to work at all, only returning missing value.

So, is it just me having these issues or is the applescript integration broken again?

 

 

Cheers!

I don't use the player position, but since the last time Spotify broke AppleScript the artwork property has been broken. So it's not just you.

All right, that's too bad. From what i remember it worked great the last time i tried, but that's probably just a sign of my ability to actually finish my projects. Oh well.

it still returns the song length in milliseconds two years on 😞 every widget that shows a progress bar looks stuck right at the beginning >.> the widgets that show numbers show the "elapsed" time is in seconds, but the "total" time is milliseconds.

Suggested posts