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

How to create script to export PDFs from multiple records and then send email?


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

Recommended Posts

  • Newbies
Posted

Hi all

I am trying to achieve a task in Filemaker 8 for a mac, and have spent hours trawling this forum for answers but no avail!

I have a database with two fields, name and email address. I want to export each record as a PDF, naming each PDF from the name field as a seperate PDF, into a folder called invite on my desktop. Then attaching each PDF to an email generated by the email address in the record. Is this something that can be done? Am new to more advanced scripting so has me stumped.

Any help would be amazing.

Thanks!

Graham

Posted

I think that this demo will help. In it, I save the invoice as a pdf, but not into a folder on the desktop, but rather into the temp folder (which'll be deleted by the OS).

Take a look at the demo and come back with questions.

http://fmforums.com/forum/showpost.php?post/320960/

  • Newbies
Posted

Thats fantastic! Cheers, that works in so far as it will generate an email for each record as I scroll through the, so one at a time. Is there a way to do 'multiple emails', i.e. so it generates a email for every record, but with its own unique PDF, when I tried it it just attached the same PDF to each email?

Thanks again, and if worst comes to worst I can do them one by one

Appreciate all your help

Ta

Graham

Posted

Glad to help. To process a list, you'd wrap this with a loop.

For example, find all the people that you wish to email. At the top of the list view, put a button "Email List." This button runs the script:

Go to Record First

Loop

Perform script Email

Go to Next Rec, Exit after Last

End Loop

  • Newbies
Posted

That works an absolute treat! Amazing, you have saved me so much time.

Thanks again, really really appreciate it!

Graham

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