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

Scripts to create and attach docs to emails


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

Recommended Posts

Posted

Does anyone know how to have FMP create a doc automatically from a field's contents, and then attach it to an email? (I can do the email part, just need to know how to have FMP auto-create a doc, preferably Word or PDF, from a text field).

Also, once it's created, the best way to name, identity, and attach the newly created doc to the email?

Trying to get this running on OSX (10.2.3), Email, and FMP6

If anyone has experience with this, that would be great. Thanks.

Posted

For OS X, check out the thread...

http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB20&Number=45677&Forum=All_Forums&Words=Creating%20a%20PDF%20w%2Fapplescript&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=1year&Main=45677&Search=true#Post45677

Posted

Thanks, that info was handy. I still need to know if it's possible to create a script (in FMP or applescript) to automatically attach the created file to an auto-generated email, all from within FMP.

I can take care of the auto-generated email, just need to find a way to attach a file to said email (automatically).

all ideas welcome.

Thanks.

Posted

You can just save your attachment to the same location everytime and

send using Send Mail script step. Alternatively, you can use applescript

to add the attachment to a Mail message. [For an example, look for the

Create New Mail Message.scpt script in the Library:Scripts:Mail Scripts

folder on your hard drive.]

Posted

the way I do on Mac OS8.6 with FM Pro 5.5 is printing the file in pdf format. Without dialog the file will always be saved to the same specified name in the same specified folder.

Then I get the function "AttachAssign" of SMTPit to get the path to the file and the rest of the script is executed using SMTPit.

So I do need 2 plugins. I tried within FM but encountered some problem with the set attachment included in the function send mail of scriptmaker. See threads on the forum :

Clickhere

Posted

You can just save your attachment to the same location everytime and send using Send Mail script step. Alternatively, you can use applescript to add the attachment to a OutLook Express message.

This topic is 7972 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.