|
|
10.6: Create global hotkeys to control Google Music playback
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! :)
10.6: Create global hotkeys to control Google Music playback
Thanks for the update! This worked for me too.
10.6: Create global hotkeys to control Google Music playback
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.
An even better way where you won't have to make changes every time the title spacing changes...
---
Hank http://www.hamsoftengineering.com |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|