UI Scripting iTunes
When right-clicking on some tracks in iTunes "Convert ID3 Tags..." appears in the contextual menu.
I can't find any mention of this in the iTunes dictionary, so I think I'll have to revert to UI scripting - but I have no idea where to start!
I've used UIElementInspector to get me the following, but I don't know how to interpret it to get to the dialog.
<AXApplication: “iTunes”>
<AXWindow: “iTunes”>
<AXMenu>
<AXMenuItem: “Convert ID3 Tags…”>
Attributes:
AXRole: “AXMenuItem”
AXRoleDescription: “menu item”
AXParent: “<AXMenu>”
AXEnabled: “1”
AXPosition: “x=777 y=755”
AXSize: “w=179 h=18”
AXTitle: “Convert ID3 Tags…”
AXHelp: “(null)”
AXSelected (W): “1”
AXMenuItemCmdChar: “(null)”
AXMenuItemCmdVirtualKey: “(null)”
AXMenuItemCmdGlyph: “(null)”
AXMenuItemCmdModifiers: “0”
AXMenuItemMarkChar: “(null)”
AXMenuItemPrimaryUIElement: “(null)”
Actions:
AXCancel - cancel
AXPress - press
Once I get the dialog box up, I need to check the ID3 tag version box, leave the popup to the default, None, and click OK.
This is the UIElementInspector for the dialog:
<AXApplication: “iTunes”>
<AXWindow: “Convert ID3 Tags”>
Attributes:
AXRole: “AXWindow”
AXRoleDescription: “dialog”
AXSubrole: “AXDialog”
AXTitle: “Convert ID3 Tags”
AXFocused: “1”
AXParent: “<AXApplication: “iTunes”>”
AXChildren: “<array of size 12>”
AXPosition (W): “x=650 y=208”
AXSize: “w=380 h=280”
AXMain (W): “1”
AXMinimized: “0”
AXCloseButton: “(null)”
AXZoomButton: “(null)”
AXMinimizeButton: “(null)”
AXToolbarButton: “(null)”
AXFullScreenButton: “(null)”
AXProxy: “(null)”
AXTitleUIElement: “<AXStaticText>”
AXGrowArea: “(null)”
AXDefaultButton: “<AXButton: “OK”>”
AXCancelButton: “<AXButton: “Cancel”>”
AXDocument: “(null)”
AXModal: “1”
AXFullScreen: “0”
AXIdentifier: “_NS:10”
Actions:
AXRaise - raise
Any help would be gratefully received.
Thanks!
MacBook Pro, OS X Mountain Lion, 13" Late 2011 8GB RAM