• 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 email to Filemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail email to Filemaker


  • Subject: Re: Mail email to Filemaker
  • From: Nigel Smith <email@hidden>
  • Date: Tue, 11 Nov 2003 12:21:12 +0000

On 10/11/03 12:17, "Malcolm Fitzgerald" <email@hidden> wrote:

> At 10:23 AM +1000 10/11/03, Rod McDevitt wrote:
>> Can anyone point me in the right direction after searching the
>> archives - I am trying to extract details of a current Mail email
>> being browsed and create a new record in a Filemaker file "MAIL
>> TEST.fp5"but am up against a brick wall.
>>
>> What is wrong with this baby????

<snip>

> tell application "Mail"
> activate
> set var70 to name of to recipient
> set var71 to sender of message
> set var72 to subject of message
> end tell
>
> tell application "FileMaker Pro"
> tell database "MAIL TEST.fp5"
> create new record with data {var70, var71, var72}
> end tell
> end tell

May not be relevent, but I get more more consistent results using:
tell application "FileMaker Pro"
create new record with data {var70, var71, var72} at database "MAIL
TEST.fp5" -- watch the line wrap!
end tell

Using "tell document" or "tell database" has no effect -- FMPro always adds
the new record to the frontmost database. OK if there is only one DB open,
but frequently causes errors otherwise. Far better to explicitly state where
you want the record to be created.

HTH,

Nigel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Mail email to Filemaker (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: importing new video track with Quicktime
  • Next by Date: Applescripts for Acrobat 6.0
  • Previous by thread: Re: Mail email to Filemaker
  • Next by thread: Re: Mail email to Filemaker
  • Index(es):
    • Date
    • Thread