|
|
Create an iTunes Genius playlist via keyboard shortcut
Late to the party, I know, but maybe more people are looking for something like this.
I am new to AppleScript so I am not sure this is the most elegant solution but it works for (iTunes X on Snow Leopard).
This might create some errors if you dont have a track selected/playing or are not in a playlist/Music section like the iTunes store.
It also checks if 'Enable access for assistive devices' is on, which should fix the problems some of the commenters had (I think).
tell application "System Events" to set isUIScriptingEnabled to UI elements enabled if isUIScriptingEnabled = false then tell application "System Preferences" activate set current pane to pane "com.apple.preference.universalaccess" display dialog "Your system is not properly configured to run this script. Please select the ¬ \"Enable access for assistive devices\" checkbox and trigger the script again to proceed." return end tell end if tell application "iTunes" activate if player state is playing then tell application "System Events" to keystroke "l" using command down set the_song to the current track play the_song end if end tell tell application "System Events" tell process "iTunes" repeat with the_button in every button of window 1 set the_props to properties of the_button if description of the_props is "genius" then click the_button return end if end repeat end tell end tell
Create an iTunes Genius playlist via keyboard shortcut
Thanks! That actually helped!
Thats what I am using:
Create an iTunes Genius playlist via keyboard shortcut
Here is another one based on it: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks 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.09 seconds |
|