dbTalk Databases Forums  

Using Applescript to Send Emails from FMP in System X

comp.databases.filemaker comp.databases.filemaker


Discuss Using Applescript to Send Emails from FMP in System X in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bfak@erols.com
 
Posts: n/a

Default Using Applescript to Send Emails from FMP in System X - 06-08-2005 , 11:34 PM






Hello,

I'm using Filemaker Pro 6 on Mac OS X (10.3.9).

I just switched from 9 to X.

I have a database called ROLODEX. In addition to phone numbers and
addresses, it has email addresses and web pages.

I've always used scripts within FMP to go to web pages and send
emails. I used Netscape Communicator as my emailer and Internet
Explorer as my browser.

Now that I'm in 10, I've been able to script going to a web page
(in Firefox). However, I haven't been able to script sending an
email. I've tried Thunderbird, Eudora and Mail.

Below is the script I used in System 9 with Netscape Communicator (the
general concept of this script doesn't work with any of the
previously listed 10 email applications). The script is embedded in a
field, which instructs FMP to copy the email address (field name is
"E1") and then open a message in the email program with that email
address in it:

"tell application ""Macintosh HD:Applications (Mac OS
9):INTERNET:Netscape Communicator™ Folder:Netscape Communicator™""

OpenURL ""mailto:" & E1 & """¶
activate¶
end tell"

Do you have a script that is equivalent to this that will work with
either Thunderbird, Eudora or Mail?

I'd appreciate it if someone could help on this. I didn't want to
leave Netscape Communicator for a System 10 mail program until I got
this issue worked out.

Thanks!

Barbara


Reply With Quote
  #2  
Old   
Spare The Spam
 
Posts: n/a

Default Re: Using Applescript to Send Emails from FMP in System X - 07-20-2005 , 12:00 PM






bfak (AT) erols (DOT) com wrote:

Quote:
"tell application ""Macintosh HD:Applications (Mac OS
9):INTERNET:Netscape Communicator™ Folder:Netscape Communicator™""

OpenURL ""mailto:" & E1 & """¶
activate¶
end tell"

Do you have a script that is equivalent to this that will work with
either Thunderbird, Eudora or Mail?

You may have grossed-out a lot of people by trying to use Applescript
and referencing a classic application by full path name. A simple "how
do I open a new email message from FMP?" would surely have received an
answer.

If that is really all you wanted to do, it's trivial. The following will
use your preferred email program, which you can set to anything you want.

The FMP script is just "open URL" [field value E1_MailTo], where
E1_MailTo is a FMP calculation field "mailto: " & E1

If you were actually trying to create a series of form letters, a
natural objective when working with a database, there are more
efficient ways to do this.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.