• 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: UI Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Printing


  • Subject: Re: UI Printing
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 05 Mar 2010 08:38:13 -0600

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.

 _______________________________________________
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

  • Follow-Ups:
    • Re: UI Printing
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: UI Printing (From: Stan Cleveland <email@hidden>)
 >Re: UI Printing (From: Vittorio <email@hidden>)
 >Re: UI Printing (From: Bill Cheeseman <email@hidden>)
 >Re: UI Printing (From: Thomas Fischer <email@hidden>)
 >Re: UI Printing (From: Luther Fuller <email@hidden>)
 >Re: UI Printing (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: UI Printing
  • Next by Date: Re: UI Printing
  • Previous by thread: Re: UI Printing
  • Next by thread: Re: UI Printing
  • Index(es):
    • Date
    • Thread