• 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: Accessing front window of Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing front window of Mail.app


  • Subject: Re: Accessing front window of Mail.app
  • From: Mike Matthews <email@hidden>
  • Date: Sun, 6 Sep 2009 10:17:01 -0700


On Sep 6, 2009, at 10:06 AM, Luther Fuller wrote:

On Sep 6, 2009, at 11:42 AM, Mike Matthews wrote:
I've been trying to find a way for this AppleScript (or something like it) to work:

tell application "Mail"
set theContent to the content of the front window
end tell

But it appears that there's no way to target the front window of Mail, including in the 10.6 version of Mail.

Message windows belong to a Viewer Window not the application. Try this ...

tell application "Mail"
set frontViewer to (message viewer 1)
set theMsg to message 2 of frontViewer
content of theMsg
end tell

---
Helpful, but it gets the content of the first message in the list of incoming messages of te selected mailbox in the mail viewer window.

I'd like the script to operate on an open outgoing message window that is front-most.

Sorry if this wasn't clear.
---
mm
 _______________________________________________
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: Accessing front window of Mail.app
      • From: Christopher Stone <email@hidden>
    • Re: Accessing front window of Mail.app
      • From: Michelle Steiner <email@hidden>
    • Re: Accessing front window of Mail.app
      • From: Luther Fuller <email@hidden>
References: 
 >Accessing front window of Mail.app (From: Mike Matthews <email@hidden>)

  • Prev by Date: Re: Accessing front window of Mail.app
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: Accessing front window of Mail.app
  • Next by thread: Re: Accessing front window of Mail.app
  • Index(es):
    • Date
    • Thread