found drama

get oblique

update: synctunes

by Rob Friesel

And just as mysteriously as my synctunes scripts appeared to stop working, they appeared to start working as expected. Keeping an eye on these though since I’m not so sure I trust their reliability at this point.

Questions:

  • Are both the LoginHook and the LogoutHook working?
  • Is it successfully updating the play counts (etc.) on known tracks but not updating recently added songs to the library?
  • Is there another, better way of doing this?

The biggest stumbling block here is the fact that to copy these files requires Administrator privileges — which is why running these shell scripts as root at login/out was part of the design. Part of what was (and honestly still is) tripping me up here is the $USER aspect of the script. My original assumption had been that the user bash was referencing was the user account being logged in to and not the user running the script (root).

To do list:

  • Re-write the scripts to test for the user account in question and only update the Library file in question (instead of ALL of them…)
  • Re-write scripts so that they don’t need to have each user account hard-coded into it. (ugh)
  • Research alternatives (AppleScript? Automator?)
  • Detailed write-up of this w/ code for circulation

currently playing: Underworld “Born Slippy”

About Rob Friesel

Software engineer by day. Science fiction writer by night. Weekend homebrewer, beer educator at Black Flannel, and Certified Cicerone. Author of The PhantomJS Cookbook and a short story in Please Do Not Remove. View all posts by Rob Friesel →

2 Responses to update: synctunes

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*