October 22, 201015 yr I have created a script that saves 3 layouts to a single pdf file by appending them. I just can not find a way to print the file after it has been saved. I know I can open it in a pdf reader and then print it but I want to bypass this step. I also want to save the pdf to the desktop and also a network location. Right now I have it save to a temp location. Here is the script. I sure someone can help me to make it better. # Set Error Capture [ On ] # Allow User Abort [ On ] # Set Variable [ $path; Value:"file:temp.pdf" ] # New Window [ ] # Go to Layout [ “Kit Consegna” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Current record ] # Close Window [ Current Window ] # New Window [ ] # Go to Layout [ “Modulo DEN” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Current record ] # Close Window [ Current Window ] # New Window [ ] # Go to Layout [ “Vadecum” (Modulo Contratto) ] # Save Records as PDF [ File Name: “$path”; Automatically open; Current record ] # Close Window [ Current Window ] Thanks CPE1704TKS
October 22, 201015 yr Author The user will be asked where to print 3 times. They each have there own printer, so I can not set a default printer.
October 22, 201015 yr Well, Filemaker cannot open a .pdf file, let alone print it - so I believe you are looking at either OS-level scripting or a plugin.
October 27, 201015 yr You could set the file path to the 'Desktop' so users can easily find the file, perhaps also displaying a dialog to notify them that's where it is... e.g in your script: Set Variable [$path; Value:Get(DesktopPath) & "myfilename.pdf" All the best...
Create an account or sign in to comment