yuuiko/AquaTouch

Define default internet browser

lflondonol92 opened this issue · 1 comments

I don't use Safari and several widgets (e.g. Lyrics on Genius) use it. Would be nice to have a configuration for the browser.

Modified the Applescript to below. FYI first time using Applescript, never bothered to look into identifying default browser.

tell application "Google Chrome"
	activate
	set encodedQuery to do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & "'" & theTrack & " - " & theArtist & "'"
	set theUrl to "https://genius.com/search?q=" & encodedQuery
	open location theUrl
end tell