Re: UI Printing
Re: UI Printing
- Subject: Re: UI Printing
- From: Luther Fuller <email@hidden>
- Date: Fri, 05 Mar 2010 07:48:23 -0600
On Mar 5, 2010, at 7:34 AM, Thomas Fischer wrote: And I somehow lost the context: Is there a particular reason not to use Mail's print command like
tell application "Mail" to print Window 1
or something similar before
click button 1 of sheet 1 of window 1
Yes!
What I'm trying to do is open a Mail document file (.emlx), then print it as PDF. There are two ways to do this: 1 - Use Mail's 'print' command, then 'Save as PDF...' via a UI script; or 2 - Use a UI script to invoke menu 'Print...', followed by 'Save as PDF...'.
One would expect the same result from both ... but noooooo!
The two methods present different Print dialogs and the resulting pdf documents are different. PDF documents created by method 1 have a smaller scale than the original, while method 2 creates documents with the same scale as the original.
|
_______________________________________________
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