Re: Regarding Unknown elements in AS GUI
Re: Regarding Unknown elements in AS GUI
- Subject: Re: Regarding Unknown elements in AS GUI
- From: Robert Olsson <email@hidden>
- Date: Fri, 26 Dec 2003 02:40:34 +0100
2003-12-24 kl. 13.01 skrev julifos:
You are forgetting targeting the window which owns the sheet "Print".
This
works for me:
#########################
tell application "System Events"
tell process "Preview"
set frontmost to true
click button "Fax..." of UI element 3 of sheet 1 of window 1
end tell
end tell
#########################
And it works for me too! Thank you very much! The UI inspector got me
confused because it doesn't say anything about any window...
<AXApplication: Fvrhandsvisning>
<AXSheet: Skriv ut>
<AXUnknown>
<AXButton: Faxa>
Now I have it all running and I can use one machine as a network fax
server for incoming and outgoing faxes! Here is the complete code if
anyone is interested:
http://www.robe.nu/applescript/
* Note also that the three-dots of "Fax..." are not 1-2-3 dots, but a
single
character (in my keyboard, "option + .")
In the swedish environment it's easy to copy it from the UI inspector.
jj
___R_o_b_e_r_t__O_l_s_s_o_n_____________________________
+46 708-131803
email@hidden
www.robe.nu
Macannonser: www.robe.nu/macmarknad/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.