Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Create global hotkeys to control Google Music playback' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Create global hotkeys to control Google Music playback
Authored by: roboguy on Nov 27, '11 07:11:45PM
This works amazingly! The only thing is, now that it's officially launched, this script has an error. The line where it says
if ((characters -10 thru -1 of (title of currTab as string)) as string) = "Music Beta" then set musicTab to currTab now needs to be
if ((characters -12 thru -1 of (title of currTab as string)) as string) = "Google Music" then set musicTab to currTab, or else it won't work properly. (Technically, it could analyze any number of characters from the title, just as long as its consistent! If you wanted to keep it from -10 to -1, you would have to test for equality to "ogle Music".) Cheers, OP and good work on this! :)

[ Reply to This | # ]
10.6: Create global hotkeys to control Google Music playback
Authored by: scottlee on Jan 09, '12 01:19:59PM

Thanks for the update! This worked for me too.



[ Reply to This | # ]
10.6: Create global hotkeys to control Google Music playback
Authored by: regulus on Jan 10, '12 02:33:52AM
A comment about the applescript code (I understand you didn't write it)... a better way to do it would be the following. This removes most of the "as string" stuff which isn't necessary.

if text -12 thru -1 of (title of currTab) is "Google Music" then set musicTab to currTab

An even better way where you won't have to make changes every time the title spacing changes...

if (title of currTab) contains "Google Music" then set musicTab to currTab

---
Hank
http://www.hamsoftengineering.com


[ Reply to This | # ]