Control which email address is used by FileMaker

Aug 16, '04 10:33:00AM

Contributed by: Anonymous

Some time ago, FileMaker added an emailing Scriptmaker step, which eliminated the need to use Applescript to send mail from the program. I was setting up a large script that would take the contents of several fields and mail them to someone as part of the macro. FileMaker is smart enough to send via Mail without having to bring it to the forefront. But I noticed while testing the script that it wasn't using the email address I thought it would to send.

I have a few different email addresses, one for work, one for home, etc., that all forward to the same POP box. I used a previous tip here to set up Mail to allow me to use my various email addresses via one "account" (since it's all the same box). I had assumed that Filemaker would pull the first email address in my preferences for the "To" field, as the tool doesn't include a way to specify that field. A dozen tests of changing various Mail preferences and poking around FileMaker, though, and it was still sending with the wrong email address.

I eventually realized that FileMaker was pulling my email address from my Address Book card -- the one that I had chosen with Card -> Make This My Card menu item. And it seemed to select the first email listing on that card, which was my personal address. Now I've created a few cards, each with a single email address, and if I need to use the script for a different purpose, I change the card using the Card -> Make This My Card menu option in Address Book before using the tool in FileMaker.

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040816012304806