Help with addressing itunes buttons with applescript.
May 28, 2010 9:18 PM Subscribe
In iTunes 9.1, what is the applescript button number for the "Save Genius Playlist" button?
After a morning of googling, I've found that the following:
set buttonTitles to title of every button of window "iTunes"
if buttonTitles contains "Burn Disc" then
click button 17 of window "iTunes"
else
click button 16 of window "iTunes"
end if
will create a genius playlist seeded by the currently selected track. Huzzah. Can anyone tell me what button number I should use to save this playlist? Alternatively, how do I display a list of the names of the buttons? I have tried displaying the array (or list, or whatever) in a dialogbox, but applescript gives me nonsense because the buttons are obviously some non-string object, and I don't know how to get the equivalent of, say, "Button.Name".
(I suppose I could trial-and-error this, but I'm a bit scared of deleting everything... it's not like I have a dev environment to mess up...)
posted by pompomtom to computers & internet (3 answers total) 1 user marked this as a favorite
{"", "", "", "previous", "play", "next", "mute", "full volume", "text list view switcher", "grid view switcher", "cover flow view switcher", "new playlist", "do not shuffle", "no repeat", "hide artwork", "remote speakers", "genius", "show genius sidebar"}posted by caaaaaam at 10:30 AM on May 29, 2010