save as PDF script problems

Discussion created by wesfolio on May 10, 2012
Latest reply on May 15, 2012 by cortical

Using Filemaker pro advanced.

I have an invoice database.

I want to make a script that will save the invoice as a pdf and name it with the invoice number & company code.

I've achieved that, but I can only save it to my desktop using the (DesktopPath) code.

How do I make it save the pdf to a specific folder on my mac?


current script:


Set Variable [$filePath; Value:Get ( DesktopPath ) & INVOICES::invoiceNumber &" " & Clients table::CoCode & ".pdf"]


Save Records as PDF [Restore; No dialog; "$filePath"; Current record]