• 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: Word 2 PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Word 2 PDF


  • Subject: Re: Word 2 PDF
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 15 Nov 2005 18:30:56 +0100

Hello

This short handler may help.

I choose a piece of code free of localised items.

property theApp : "Mail"

my print2pdf()

on print2pdf()
	tell application theApp
		activate
	end tell
	tell application "System Events" to tell process theApp
		set frontmost to true
		keystroke "p" using {command down}
		set posWind to get position of window 1
		set sizeWind to get size of window 1
		set Xclick to (posWind's item 1) + ((sizeWind's item 1) div 2) - 70
		set Yclick to (posWind's item 2) + 274
		click at {Xclick, Yclick}  -- in Save as PDF…
		keystroke return
	end tell
end print2pdf

Of course you may use an other app to print from

The offsets used to compute Xclick and Yclick are the ones applying to my epson stylus photo 830U printer.
I am unable to check if they apply to an other printer driver.


Yvan KOENIG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Word 2 PDF (From: Richard Brosnahan <email@hidden>)
 >Re: Word 2 PDF (From: Mark Butler <email@hidden>)

  • Prev by Date: Re: Scripting M$ Visio?
  • Next by Date: Re: word2pdf
  • Previous by thread: Re: Word 2 PDF
  • Next by thread: Re: Word 2 PDF
  • Index(es):
    • Date
    • Thread