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?
posted by pompomtom to computers & internet (3 answers total) 1 user marked this as a favorite
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"
click button 16 of window "iTunes"
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...)