Help Wizard

Step 1


Issue with Applescript

Issue with Applescript




I played around to control Spotify on my Macbook Pro 2018 with AppleScript. I experienced that "sound volume" will not be updated when the volume will be changed in the UI:


if application "Spotify" is running then

  tell application "Spotify"

    return (get sound volume) / 100

  end tell


  return 0

end if




In addition there is a mismatch between the documentation and reality. The duration of a track will be mentioned to be given in seconds in reality it is milliseconds:


tell application "Spotify"

   return player position / ((duration of current track) / 1000)

end tell


Thanks for fixing,



1 Reply

Hi there!

I know it sounds simple, but it's often overlooked. Could you try restarting your device? If that doesn't help, try a quick clean reinstall of the app. Just follow these steps.

If you're still having trouble, could you let me know the exact version of Spotify and the exact version of the operating system you're running?


If possible, could you send me the file to test it? 🙂

I'll see what I can suggest next!

Suggested posts