Clicking iTunes 9 Genius button?
Clicking iTunes 9 Genius button?
- Subject: Clicking iTunes 9 Genius button?
- From: "David A. Cox" <email@hidden>
- Date: Wed, 9 Sep 2009 15:38:28 -0700
This worked in iTunes 8 (if a song is playing in iTunes):
tell application "System Events"
tell process "iTunes"
keystroke "l" using command down --this draws focus to the active song
click (the first button of window "iTunes" whose help is "Start
Genius.") --this clicks the genius button
keystroke "l" using command down --this draws focus to the now
active genius playlist.
end tell
end tell
But this does not seem to work in iTunes 9, as all of the buttons have
a missing value for their "help". I have not seen any other way to
find the button with UI scripting (finding it by count does not always
work as the number of buttons or layout may change). It would be
better if there was direct way to start a genius playlist, but I have
not seen that either.
Anyone have a way to do this?
DAC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden