• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regarding Unknown elements in AS GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Regarding Unknown elements in AS GUI
      • From: Robert Olsson <email@hidden>
  • Prev by Date: Re: Link to the latest Satimage osax.
  • Next by Date: Re: Link to the latest Satimage osax.
  • Previous by thread: Regarding Unknown elements in AS GUI
  • Next by thread: Re: Regarding Unknown elements in AS GUI
  • Index(es):
    • Date
    • Thread