Skip to content

Instantly share code, notes, and snippets.

@rmehner
Last active December 13, 2015 19:08
Show Gist options
  • Save rmehner/4959900 to your computer and use it in GitHub Desktop.
Save rmehner/4959900 to your computer and use it in GitHub Desktop.
tell application "Spotify"
return player position
end tell
-- returns 13.37
tell application "Spotify"
return "" & player position
end tell
-- returns "13,37"
@rmehner
Copy link
Author

rmehner commented Feb 15, 2013

Turns out, the logic is "When presented as string, format with locale". Thanks @maxwinde and @tobiasgies for mentioning that. Guess I was not drunk enough to see that ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment