andrehaveman / spotify-node-applescript

Control Spotify on Mac OSX with NodeJS and AppleScript
MIT License
316 stars 39 forks source link

Update get_state.applescript #25

Closed wackro closed 8 years ago

wackro commented 8 years ago

Hi,

I'm trying to make a progress bar based on the position of the track and could do with the extra granularity. Are you able to pull this change?

Thanks, Joe

andrehaveman commented 8 years ago

Sorry, had to revert the pull request after merge. I found out that it broke the tests on my machine. It gives back position like 1,234 (notice the comma) on my computer. JSON.parse() throws an error on result from applescript. Probably dependent on system language.