Oct 08, 2013; 14:13
jfleet.fmforums
[FMPro] =?utf-8?q?FMPA12_=28Mac=29_Saving_a_pdf_to_an_external_dr?= =?utf-8?q?ive_script_step?=
For years I have an FMP script which created a pdf to a particular folder on my Mac, but recently I moved the folder to an external drive and, despite resetting the file path, the script won't work. Instead I get this message:
"filename,pdf" could not be created on this disk. Use a different name, make more room on the disk, unlock it or use a different disk"
The external drive is marked "ignore ownership on this volume" so I don't think it is a permissions issue, and the drive has 100s of Gb spare. I can create the pdf manually into the folder but this is tedious.
So here is the script which works, saving to a folder in the Documents on my main internal drive:
_________________
Perform Script [ “PDF Name” ]
Print Setup [ Orientation: Portrait; Paper size: 8.27" x 11.69" ]
[ Restore; No dialog ]
Enter Preview Mode
Set Variable [ $filename; Value:XX Invoices 2010::PDF Name & ".pdf" ]
Set Variable [ $filepath; Value:XX Invoices 2010::Invoice Path ]
Set Variable [ $theFile; Value:"file:/" & Right(Get(DocumentsPath);Length(Get(DocumentsPath))-1) & "VAT & Tax/Invoice & Timesheet
pdfs/Invoices 2012 ƒ/"& $fileName ]
Save Records as PDF [ File Name: “$theFile”; Automatically open; Current record ]
[ Document - Title: XX Invoices 2010::PDF Name; Compatibility: Acrobat 5 and later ]
[ Pages - Number Pages From: 1; Include: Specific Pages; Start Page: 1; End Page: 1 ]
[ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ]
[ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ]
[ Restore; No dialog ]
Enter Browse Mode
__________________
Invoice path field contains: /Users/XX/Documents/VAT & Tax/Invoice & Timesheet pdfs/Invoices 2012 ƒ
PDF Name field contains: 0755 XX-YY-26Mar13 (created by PDF name script)
____________________
This script does not work, saving to an external drive:
Perform Script [ “PDF Name” ]
Print Setup [ Orientation: Portrait; Paper size: 8.27" x 11.69" ]
[ Restore; No dialog ]
Enter Preview Mode
Set Variable [ $filename; Value:XX Invoices 2013::PDF Name & ".pdf" ]
Set Variable [ $filepath; Value:XX Invoices 2013::Invoice Path ]
Set Variable [ $theFile; Value:"file:/" & Right(Get(DocumentsPath);Length(Get(DocumentsPath))-1) & "Volumes/G XX Work/VAT & Tax
2013/Invoice & Timesheet pdfs/Invoices J 2013/"& $fileName ]
Save Records as PDF [ File Name: “$theFile”; Automatically open; Current record ]
[ Document - Title: XX Invoices 2013::PDF Name; Compatibility: Acrobat 5 and later ]
[ Pages - Number Pages From: 1; Include: Specific Pages; Start Page: 1; End Page: 1 ]
[ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ]
[ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ]
[ Restore; No dialog ]
Enter Browse Mode
Set Zoom Level
[ 150% ]
____________________
Invoice path field contains: /Volumes/G XX Work/VAT & Tax 2013/Invoice & Timesheet pdfs/Invoices J 2013
PDF Name field contains: 0783 XX-YY-08Oct13 (created by PDF name script)
____________________
Would appreciate some help solving this perplexing problem as I have spent most of today trying various ways of solving it.
TIA
#############################################################
This message is sent to you because you are subscribed to
the mailing list FMPro
FMPro@lists.lassosoft.com
To unsubscribe, E-mail to: <FMPro-unsubscribe@lists.lassosoft.com>
Send administrative queries to <FMPro-request@lists.lassosoft.com>