September 14, 200718 yr Let me ask if there is any way to do this. I have a script where we (prior to upgrading to 9...we had 7), had to print to PDF then manually attach to an email we generated from filemaker. Now I would like to, all in one script, create the PDF in filemaker and a formatted email with filemaker data. The problem is the PDF function has an email feature but it doesn't give you any options like the send mail script function. I need to have data populated in the email and attach the PDF...but, alas, I'm lost. Thank you i advance
September 14, 200718 yr You can use a combo of the 2 steps. First specify the file path in a script Variable step. In FileMaker 9 you can use the new Get ( TemporaryPath ), if you don't want to see the PDFs. They will then be deleted when you restart the machine (on a Mac anyway, and I imagine the same for Windows, hence "temporary"). Otherwise put them in a folder on the Desktop, using Get ( DesktopPath ). Set Variable [ $filepath; "filewin:" & Get ( TemporaryPath ) & "some file.pdf" ] # You would likely get "some file.pdf" from a FileMaker field, not hard coded text (so it wouldn't have quotes) Save Records as PDF [ $filepath ] Send Mail [ ... ... ; attachment; $filepath ]
September 19, 200718 yr is it possible for me to add TWO attachments to an email? For example, a merge file and a pdf file? Thanks, Michael
September 19, 200718 yr Not with native FileMaker. It can be done via AppleScript. In fact, you can create a folder, put both in it, then zip the folder, then attach that. But that's a bit more complex.
October 2, 200718 yr Author Thanks Fenton, that worked! I also stumbled on the fact that the Business Productivity Suite (BPS) that FIlemaker created has this in their script for the 'email invoice' button
Create an account or sign in to comment