The past few days have been driving me batty - I’ve written my first long applescript, tweaked it and gotten it to do 95% of what I want, yet I just canNOT figure out how to select a file through an outline view from Freehand MX. Is there anyone who can offer advice, thoughts or rules of thumb on why something like this won’t work:
select row 2 of outline 1 of scroll area 1 of ui element 4 of window 1 of process “freehand mx”
the reference works fine and I’ve tried every action I’m aware of, as well as trying to set the property for this row’s “selected” to true. Can anyone help? I’ve been stuck on this for 48 hrs
try "set value of attribute “AXFocused"of … of… to true”.
Have you used Bill Cheeseman’s “UI Browser” to help? This thing is fantastic. It has a 30 day trial, and after you launch it and the app, select the app that you want to script from the dropdown menu, then hit control-command-A while you hover (not click) the mouse over the UI element that you want to script. It will find it and show its hierarchical name. Then choose “actions” from the other dropdown. If that does not help, choose “Attributes” and see if any of them are changeable. If so, you can test out the changes right in UI Browser, and then it will paste the code into Script Editor at the insertion point, or to the Clipboard.
http://www.prefab.com/uibrowser/
Thanks so much for the reply.
Unfortunately I’m well familiar with UI browser and still can’t get an answer. The attribute “selected” cannot be set.
All I’m trying to do is navigate a file selection dialog without using key codes.