Pe8er / Sidebar.Widget

28 stars 8 forks source link

Spotify reopens immediately after quitting #7

Closed dominiklohmann closed 8 years ago

dominiklohmann commented 8 years ago

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

Pe8er commented 8 years ago

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

dominiklohmann commented 8 years ago

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 8 years ago

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

schaufma commented 8 years ago

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 https://github.com/Pe8er/Sidebar.Widget/issues/7#issuecomment-195620326.

dominiklohmann commented 8 years ago

Progress bar is still stuck at 100% for me.

Pe8er commented 8 years ago

@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.
dominiklohmann commented 8 years ago
❯ 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 8 years ago

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

dominiklohmann commented 8 years ago

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 8 years ago

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.

dominiklohmann commented 8 years ago

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

Pe8er commented 8 years ago

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.

dominiklohmann commented 8 years ago

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

Pe8er commented 8 years ago

No worries @dominiklohmann :smile: