Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7810 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

I'm very new to AppleScripting and I'm trying to find an AppleScript that will allow me to compose an email with multiple BCC contacts from my FM database. I've made a novice attempt so far to which I managed to set up a new draft window with the correct "to" recipient and a BCC recipient of the first record but cannot add more than one recipient. Any help with this greatly appreciated, Here's a copy of my current script:

tell application "FileMaker Pro"

set strURL to cell "g_email_to" of current record

set strSUBJ to cell "Subject" of current record

set strBCC to cell "email" of current record

set strCOUNT to cell "new_record_count" of current record

set strMAILTO to {"<" & strURL & ">"}

end tell

tell application "Microsoft Entourage"

activate

set theMSG to make new draft window with properties {to recipients:strMAILTO, BCC recipients:strBCC, subject:strSUBJ}

end tell

repeat strCOUNT - 1 times

tell application "FileMaker Pro"

tell database "Comms Contacts.fp5"

go to record after current record

set strBCC to cell "email" of current record

end tell

tell application "Microsoft Entourage"

tell theMSG

make new bcc recipient at end with properties {BCC recipients:strBCC}

end tell

end tell

end tell

end repeat

  • 2 months later...
Posted

What works for me is to have the multiple addresses in the FMP field, seperated by commas. Then you don't have to manipulate the script, just add to the field then pass them all over to Entourage at once. So if the field is named "bccaddressess" set its content to "[email protected],[email protected]" etc.

This topic is 7810 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.