• 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: Mail and FileMaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail and FileMaker


  • Subject: Re: Mail and FileMaker
  • From: Mike Matthews <email@hidden>
  • Date: Wed, 18 Jul 2007 09:58:35 -0700


On Jul 18, 2007, at 9:52 AM, Michelle Steiner wrote:

On Jul 18, 2007, at 9:29 AM, Mike Matthews wrote:

(1) Getting the recipient name, recipient email address, and content from the outgoing message window. (References like front window don't seem to work with Mail.app)

The following script assumes that all the outgoing messages have been sent already and are in the Sent folder.


tell application "Mail"
tell message viewer 1
repeat with thisMessage in the messages of the sent mailbox
set theContent to the content of thisMessage
repeat with theRecipient in the recipients of thisMessage
set thePerson to the name of theRecipient
set theEmail to the address of theRecipient
my FilemakerRoutine(theContent, theRecipient, theEmail)
end repeat
end repeat
end tell
end tell

---
Actually, I should have clarified: I'd like to run the script while the outgoing message window is open, but before sending the message.
---


I don't script FileMaker, so I can't help you with that part of the script.

--- OK, thanks.

Like the quote!  ;)
---
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: Mail and FileMaker
      • From: Peter Baxter <email@hidden>
    • Re: Mail and FileMaker
      • From: Peter Baxter <email@hidden>
    • Re: Mail and FileMaker
      • From: Michelle Steiner <email@hidden>
References: 
 >Mail and FileMaker (From: Mike Matthews <email@hidden>)
 >Re: Mail and FileMaker (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Mail and FileMaker
  • Next by Date: Re: Mail and FileMaker
  • Previous by thread: Re: Mail and FileMaker
  • Next by thread: Re: Mail and FileMaker
  • Index(es):
    • Date
    • Thread