• 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: How to get text of frontmost window in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get text of frontmost window in Mail?


  • Subject: Re: How to get text of frontmost window in Mail?
  • From: Roger Howard <email@hidden>
  • Date: Wed, 10 May 2006 16:41:59 -0700


On May 10, 2006, at 3:31 PM, Michelle Steiner wrote:

On May 10, 2006, at 3:24 PM, Roger Howard wrote:

Yes, I need to process the contents of a new message. As far as I can tell, these *aren't* automatically saved to Drafts, which is why I was asking about processing text from the frontmost editor window... t'would seem to be a straightforward endeavor.

In Tiger, they are. I think they are first saved after 30 seconds or a minute, and then are continually saved as the message remains open. I haven't timed it.


But, as I said, they are also saved when you press command-S.

Yep, I see they are auto-saved now... good to know.


I'm going to try doing it with GUI Scripting so I don't have to remind the user to do anything but run a script (from the Dock perhaps).

Or the script menu.

There's no Mail script menu anymore.. but I figure you mean the system wide script menu - i'll make that an option for sure, though most people don't have it enabled and a simple icon to click in the dock is often easiest for people with simple environments.

Identifying which message in Drafts is the current (frontmost) one seems dicey (based on subject perhaps?)

Well, if messages are sent as soon as they are finished, there should be only one message in the draft folder at a time, but I realize that not everyone sends as soon as she finishes it.

Right... they may well have other business going on at the same time... _______________________________________________ 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
References: 
 >How to get text of frontmost window in Mail? (From: Roger Howard <email@hidden>)
 >Re: How to get text of frontmost window in Mail? (From: Michelle Steiner <email@hidden>)
 >Re: How to get text of frontmost window in Mail? (From: Roger Howard <email@hidden>)
 >Re: How to get text of frontmost window in Mail? (From: Michelle Steiner <email@hidden>)
 >Re: How to get text of frontmost window in Mail? (From: Roger Howard <email@hidden>)
 >Re: How to get text of frontmost window in Mail? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How to get text of frontmost window in Mail?
  • Next by Date: Re: How to get text of frontmost window in Mail?
  • Previous by thread: Re: How to get text of frontmost window in Mail?
  • Next by thread: Re: How to get text of frontmost window in Mail?
  • Index(es):
    • Date
    • Thread