Update open uri on OSX

Credit to @michaelmcmillan for updated method for opening spotify
using applescript. The window focus now no longer changes.

General clean up on top of this fix.