Filemaker pro not saving to PDF with script
I hope someone can help me with this intermittent problem. I can't get filemaker to save a pdf to a file location with a script. I get the following message:
"“temp.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."
I am the administrator and have full access to the disk.
Here is a copy of the script:
Set Variable[$PDF_path_and_filename; Value: Get(DocumentsPath)]
Set Variable[$PDF_path_and_filename; Value: $PDF_path_and_filename & "temp.pdf"]
Save Records as PDF[Restore;No dialog;"$PDF_path_and_filename";Current record]
I am running this script with the checkbox "Run script with full access priviledges" checked.
Any help would greatly be appreciated!!