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

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

Recommended Posts

Posted

Ok, I've scripted FMPro to print a file as a PDF, it does so and saves it onto my desktop.

The name is the name of the file, ie "Sales Line Item"

I want the name to automatically be my field "invoice ID#" If I could put text infront or behind that great, but the key thing is the name being the invoice number.

Then I want to script it to save that file, not to my desktop but to a folder that I designate.

I spent a day search different plug ins and script but have not found anything yet and beleive that FMPro can do anything.

If I can't do this I might have to start using QuickBooks, UGH!

Joseph

Posted

Print the file to disk as a PDF. Copy the file to another you designate, using Send Message. Then print that file using Send Message, again.

Posted

On Mac OS X you have access to a built-in PDF printer, available within FileMaker, in the Print step dialog, Save as PDF.* You can therefore create a FileMaker script to save a PDF directly to your desktop.

*I believe this is there by default in Jaguar; it is in Panther. If not, let us know. There is a way to create it.

This is for a single-user file. A client on a multi-user file cannot export to "the" desktop directly, because each user has his own desktop. This is handled automatically by the OS, and can be found by AppleScript, but not by FileMaker, who only knows fixed paths.

There are folders which every OS X computer has, usually in the same place. One which all users have access to is the "Users/Shared" folder. So you can export from FileMaker to that, and AppleScript can find the pdf file and move/rename it.

Printpdfonly.zip

Posted

josephkola: I just checked--Send Message is only available for Windows! So do as Fenton says.

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