Re: Regarding Unknown elements in AS GUI
Re: Regarding Unknown elements in AS GUI
- Subject: Re: Regarding Unknown elements in AS GUI
- From: julifos <email@hidden>
- Date: Wed, 24 Dec 2003 13:01:45 +0100
>
I wonder if anyone can help me? I have tried to script Preview to fax
>
pdfs with help of AppleScript GUI without any luck. My problem is the
>
Unknown elements. I was very happy to see that Joshua Ochs had found an
>
solution for it (found it in macosxhints) but sadly the solution
>
doesn't work for me. Here is my script:
>
>
tell application "Preview"
>
activate
>
end tell
>
tell application "System Events"
>
tell process "Preview"
>
tell sheet "Print"
>
tell UI element 3
>
click button "Fax..."
>
end tell
>
end tell
>
end tell
>
end tell
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
#########################
* Note also that the three-dots of "Fax..." are not 1-2-3 dots, but a single
character (in my keyboard, "option + .")
jj
_______________________________________________
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.