• 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: iWorks Pages "Print" dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iWorks Pages "Print" dialog


  • Subject: Re: iWorks Pages "Print" dialog
  • From: Brian Christmas <email@hidden>
  • Date: Fri, 16 Sep 2011 14:51:22 +1000


G'day

Your error actually lies in the second click line.

Try…


tell application "Pages"
activate
set file_name to name of document 1

  tell application "System Events"

tell application process "Pages"


--keystroke "p" using {command down} --this works
--delay 3
click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1

  click menu button "PDF" of sheet 1 of window file_name

  click menu item "Save as PDF…" of menu 1 of menu button "PDF" of sheet 1 of window file_name

  end tell

  end tell

end tell

I don't have as 'Save PDF to Evernote, so I've substituted 'save as PDF…'

Regards

Santa



On 16/09/2011, at 2:24 PM, email@hidden wrote:

tell application "Pages"
activate
set file_name to name of document 1

tell application "System Events"
tell application process "Pages"
--keystroke "p" using {command down} --this works
--delay 3
click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1
click menu of menu button "PDF" of sheet 1 of window file_name
click menu item "Save PDF to Evernote" of menu 1 of menu button "PDF" of sheet 1 of window file_name --Errors at this line. 
end tell

end tell

 _______________________________________________
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

References: 
 >iWorks Pages "Print" dialog (From: "email@hidden" <email@hidden>)

  • Prev by Date: iWorks Pages "Print" dialog
  • Next by Date: Re: INDESIGN: Problem Passing Doc Through Handlers of Called Script
  • Previous by thread: iWorks Pages "Print" dialog
  • Next by thread: Re: iWorks Pages "Print" dialog
  • Index(es):
    • Date
    • Thread