Re: Word 2 PDF
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