• 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: Peter Baxter <email@hidden>
  • Date: Thu, 19 Jul 2007 08:36:53 +1000

Hi Michael,

Here is a partial script showing the method of doing what you want.  To make it easier to understand I used Michelle's script instead of the one I usually use.  Her scripts are invariably better written than mine anyway.

(* Create a Filemaker file called Emails or adapt this script.  Create fields in it called  TheContentOfDrafts and TheAddressOfDrafts and run this script.*)


tell application "Mail"
tell message viewer 1
repeat with thisMessage in the messages of the drafts mailbox
set theContent to the content of thisMessage
repeat with theRecipient in the recipients of thisMessage
set theEmail to the address of theRecipient
my FilemakerRoutine(theContent, theRecipient, theEmail)
end repeat
end repeat
end tell
end tell
on FilemakerRoutine(theContent, theRecipient, theEmail)
tell application "Finder"
activate
open document file "Emails.fp7" of startup disk
end tell
tell application "FileMaker Pro Advanced"
activate
create new record at the end
go to last record
set contents of field "TheContentOfDrafts" of the current record to theContent
set contents of field "TheAddressOfDrafts" of the current record to theEmail

--etc

end tell
end FilemakerRoutine





Peter Baxter
email@hidden

Music creates order out of chaos: for rhythm imposes unanimity upon the divergent, melody imposes continuity upon the disjointed, and harmony imposes compatibility upon the incongruous.
-- Yehudi Menuhin

iChat email@hidden


 _______________________________________________
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

References: 
 >Mail and FileMaker (From: Mike Matthews <email@hidden>)
 >Re: Mail and FileMaker (From: Michelle Steiner <email@hidden>)
 >Re: Mail and FileMaker (From: Mike Matthews <email@hidden>)

  • Prev by Date: Mark Pinson is out of the office.
  • 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