Pe8er/Sidebar.Widget

Spotify reopens immediately after quitting

Closed this issue · 14 comments

When running Playbox.widget, Spotify.app reopens directly after quitting the application.

Pe8er commented

I've just pushed some updates which stop this from happening on my system. Check it out and let me know what happens!

https://github.com/Pe8er/Sidebar.Widget/blob/master/Sidebar.widget.zip?raw=true

That works, tyvm.

One more question, does the progress bar work for you with Spotify? I can't get it to work, always seems to be stuck at 100%.

Pe8er commented

Ha, nice catch! Just fixed it, please redownload.

GREAT … everythin is fine now!

Thanks for the work ..

Am 12.03.2016 um 02:01 schrieb Piotr Gajos notifications@github.com:

Ha, nice catch! Just fixed it, please redownload.


Reply to this email directly or view it on GitHub #7 (comment).

Progress bar is still stuck at 100% for me.

Pe8er commented

@dominiklohmann please do the following:

  1. Make sure you have the latest version of the widget.
  2. Restart Ubersicht.
  3. Open Sidebar.widget/Playbox.widget/as/Get Current Track.applescript in Script Editor.
  4. Make sure there is a song playing.
  5. Hit ⌘ + R to run the Applescript.
  6. Copy output from Result area at the bottom of the window.
  7. Wait a few seconds.
  8. Run it again and copy output again.
  9. Paste both outputs here.
❯ osascript Get\ Current\ Track.applescript
Zhu ~ In the Morning ~ In the Morning ~ ★★★☆☆ ~ 246495 ~ 4,242 ~ http://img2-ak.lst.fm/i/u/174s/7a424d57923b933ee4466a5d09f328ec.png

❯ osascript Get\ Current\ Track.applescript
Zhu ~ In the Morning ~ In the Morning ~ ★★★☆☆ ~ 246495 ~ 28,143 ~ http://img2-ak.lst.fm/i/u/174s/7a424d57923b933ee4466a5d09f328ec.png
Pe8er commented

I think I've fixed it. Please try the latest version and let me know.

Nope.

screen shot 2016-03-14 at 19 13 58

❯ osascript Get\ Current\ Track.applescript
Zhu ~ Working For It ~ Genesis Series ~ ★★★★☆ ~ 231813 ~ 46,668 ~ http://img2-ak.lst.fm/i/u/174s/58133fd85084c763dda6ceec9dd2b1ef.png
❯ osascript Get\ Current\ Track.applescript
Zhu ~ Working For It ~ Genesis Series ~ ★★★★☆ ~ 231813 ~ 56,725 ~ http://img2-ak.lst.fm/i/u/174s/58133fd85084c763dda6ceec9dd2b1ef.png
Pe8er commented

Please run this in Script Editor:

set oValues to {}
tell application "Spotify"
    repeat 3 times
        set aDuration to duration of current track
        set aPosition to player position
        copy aPosition & aDuration to the end of oValues
        delay 1
    end repeat
end tell

return oValues

And let me know the output.

{{137.622, 231813}, {138.623, 231813}, {139.625, 231813}} seems to work.

Pe8er commented

Alright. I fixed number formatting in the latest version. It looks like we managed to miss each other — I probably pushed the latest update seconds after you downloaded it. Try downloading it again.

Completely forgot to close this, sorry for leaving it open so long.

Pe8er commented

No worries @dominiklohmann 😄