hi there,
i’m new to applescripting and am trying to automate a cd writing program with a robotic duplicator. the program is not applescriptable so i’m trying to use UI scripting for this process. i’ve noticed that some buttons don’t respond to my commands. i’ve found a way around some but an stumped on a particular pop up menu.
i’m using the UI element inspector and am not quite sure what to make of this. when i click the pop up menu and scroll to the option i want (“Build A Mac HFS”), i get the following:
<AXApplication: “Discribe OSX”>
<AXWindow: “Discribe”>
<AXMenuItem: “Build A Mac HFS”>
Attributes:
AXRole: “AXMenuItem”
AXRoleDescription: “menu item”
AXChildren: “(null)”
AXParent: “”
AXTitle: “Build A Mac HFS”
AXEnabled: “1”
AXPosition: “x=333 y=194”
AXSize: “w=250 h=21”
AXSelectedChildren: “”
AXVisibleChildren: “”
AXHelp: “(null)”
AXMenuItemCmdChar: “
AXMenuItemCmdVirtualKey: “(null)”
AXMenuItemCmdGlyph: “(null)”
AXMenuItemCmdModifiers: “0”
AXMenuItemMarkChar: “”
Actions:
AXCancel - cancels menu tracking
AXPick - selects a menu item
AXPress - selects a menu item
my question is what kind of command could i use to automatically select “Build A Mac HFS” from this pop up menu. i’ve tried a variety of things like:
tell pop up button “AXPopUpButton” of window “Discribe”
select menu item “Build A Mac HFS”
end tell
tell pop up button “AXPopUpButton” of window “Discribe”
click
select menu item “Build A Mac HFS”
end tell
but i just get errors. any advice would be greatly appreciated. also, if anyone knows of some good books or websites devoted specifically to UI scripting, please post them here.
regards,
matt chan