Save file as PDF, error 800, "...could not be created on this disk..."
I have a script to send my clients an email receipt. Part of the script step is saving the PDF in the temp folder :
Set Variable [$PATH; Value:Case (Abs(Get(SystemPlatform)) = 1; "filemac"; "filewin")&":" & Get(TemporaryPath) & Substitute ( Substitute ( Get (CurrentTimeStamp) ; "/" ; "-" ) ; ":" ; "-") & " Email Record.pdf"]
Save records as PDF [Restore; No dialog; "$PATH" ; Records Being Browsed]
This saves the file in the format “MM-DD-YYYY HH-MM-SS PM Email Record.pdf”
The script works great the first or second time it is used after opening up the database. Then it will give me the 800 error
“4-13-2014 4-16-57 PM Email Record.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.
Im not sure if it a permissions issue or a problem with filemaker. I think the script is sound since it works a few times before giving me the 800 error. Any ideas would be greatly appreciated!