• 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: UI Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Printing


  • Subject: Re: UI Printing
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 05 Mar 2010 10:38:37 -0600

I'm having more problems with UI scripting. This does not work ...

tell process "Mail"
keystroke "p" using {command down}
--
delay 5
--
click menu item "Save as PDF…" of menu button "PDF" of sheet 1 of window 1 -- elipsis
end tell

But, if I replace the last line with ...

click button "Cancel" of sheet 1 of window 1 -- this works

it does work.

Both of the 'click' lines were constructed following some examples found on the web and with the help of Accessibility Inspector.

Does anyone know why I'm having a problem?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: UI Printing
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: UI Printing (From: Stan Cleveland <email@hidden>)
 >Re: UI Printing (From: Vittorio <email@hidden>)
 >Re: UI Printing (From: Bill Cheeseman <email@hidden>)
 >Re: UI Printing (From: Thomas Fischer <email@hidden>)
 >Re: UI Printing (From: Luther Fuller <email@hidden>)
 >Re: UI Printing (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: List manager for Applescript Users
  • Next by Date: Re: UI Printing
  • Previous by thread: Re: UI Printing
  • Next by thread: Re: UI Printing
  • Index(es):
    • Date
    • Thread