On Mar 5, 2010, at 8:05 AM, Bill Cheeseman wrote: You've lost me. The two techniques produce the same Save panel on my machine. Could you post your 2 scripts?
Open a message in a document window (not in the message viewer window) in Mail. Then run this script ...
tell application "Mail" activate print window 1 end tell
A Print window (not a slide down panel) appears. If you print to pdf, you will get a pdf document which includes the message window's tool bar and scroll bars.
On the other hand, if you Command-P, then a slide down panel appears in the message window. If you Save as PDF..., the pdf document shows only the content of the message without the tool bar and scroll bars.
One would think that using ...
print document of window 1
would fix this problem, but 'document' in Mail is NOT implemented despite being in Mail's dictionary.
If you try this with a message viewer window instead of a document window, the difference is even more obvious.
|