bigchiefs Posted September 5, 2006 Posted September 5, 2006 I'm running fm7 on Mac OSX (10.4.6). I've set up a button that calls a script that "prints" to PDF through the OSX print dialog. This all works fine. The problem I'm having is that all PDF's are created with the window name and overwrite the previous PDF. I'd like the PDF's to be named based on the value of a field in the record being "printed". I know that I can achieve this by re-naming the PDF using applescript but does anyone know a simpler / cleaner approach. Many thanks, Mark
IdealData Posted September 5, 2006 Posted September 5, 2006 (edited) FM8 allows you to create PDF and dynamically name files. Upgrade? Edited September 5, 2006 by Guest
bigchiefs Posted September 6, 2006 Author Posted September 6, 2006 Upgrade is the obvious solution. An upgrade is planned (I already run fm8) but all my users are still on 7. I have a solution that works locally (using applescript) but I'm having problems making it work across the network. Probably just a scripting bug I need to iron out. Just hoped someone may have had a more elegant solution. Cheers, Mark
moonunit Posted April 15, 2007 Posted April 15, 2007 Apologies for posting this reply so late: perhaps somebody can make use of it... Yes, you can create a unique PDF filename in FMP7.0 If you add a 'New Window' script step, then give the new window a title, by formula, that's what will form the basis of the printed PDF file name. Set a global number field to increment by one each time the print script is run, then this step, coupled with the Window Title gives you a version number that changes each time you print to pdf...
Lorne Posted July 25, 2007 Posted July 25, 2007 I have been trying to do this in FMP 8 without success - probably missing a key point. I want to produce pdfs - one per record in a file with the pdf file name in the format serial-no.pdf where serial-no is a field in the record. Using the New Window approach - I can get a window with the serial-no as the window name. Do you have a separate "pdf printer"? There was the implication in an earlier post that it was part of full Adobe Acrobat. Or do you somehow control the Mac OS Print - PDF option so that the window name is preserved as the file name for the pdf. If so, could you share how you do that - it would be a big help. When I try to use the "save Records as a pdf" in FMP 8 it won't let me insert a calculated file name - just a simple box. It will make one large pdf file with all the records but not the one file per record that I need. Thanks for your help.
moonunit Posted July 25, 2007 Posted July 25, 2007 Using the New Window approach - I can get a window with the serial-no as the window name. Do you have a separate "pdf printer"? There was the implication in an earlier post that it was part of full Adobe Acrobat. Or do you somehow control the Mac OS Print - PDF option so that the window name is preserved as the file name for the pdf. If so, could you share how you do that... Hello Lorne, I think you've got me! Something I hadn't taken account of previously... Yes, I run Adobe Acrobat. This does no more than provide the pdf printer option within the printer drop-down, but because it does, that's how I'm able to 'print' with the window name as the filename... However, from a cursory look, if you introduce the script step "Save Records as PDF" an options window is called which allows you to specify the title as a calculation, which ought to do it. Having re-read your email I can see that you're pretty close to what I've suggested: have you tried the "Specify Options" angle? Let me know how you get on...
Lorne Posted July 25, 2007 Posted July 25, 2007 I know I'm a year late - but have the same need but just locally. Could you point me to where to get the applescript. Thanks
moonunit Posted July 25, 2007 Posted July 25, 2007 Lorne, check this topic out: Post: Create a PDF with a specific file name? (Topic#183364) My effort was for 7.0 Good luck
Recommended Posts
This topic is 6399 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 accountSign in
Already have an account? Sign in here.
Sign In Now