When you specify the filename, you also have to specify a file path. You are not only telling filemaker what to name the file, but also where to save it.
Here's a variable based approach adapted from one of my database files:
Set Variable [$Path ; Value: "file:" & Get ( DesktopPath ) & YourTable::YourField & ".PDF" ]
Save Records as PDF [ Restore ; No Dialog ; $Path ; Automatically Open ; Current Record ]
This saves the PDF to your desktop. There are other get functions you can use that return paths to other standard locations such as the documents or temporary items folders.
Save Records As PDF
Creating file paths
@PhilModJunk - PERFECT! :) Works like a charm :)
@davidanders - thanks for the links, but those were the ones that I had tried to no avail; I wasn't "clever" enough to "get" both file AND path :)
Thanks again to all!
i just used your solution above to save a pdf to a specified path with a customized name. it is constructed with the help of a global temp field where the user enters a preferred path. it works great, but in case this path is not valid (maybe the folder is moved at a liater date by the user) i also entered a backup path to the desktop. if the desktop path (or other backup path) is used, is there a way to find out within the script which path was used for the purpose of notifying the user that their default path is not valid and directing them to to location of the saved pdf? or is there a way to test the validity of a path prior to saving... then i could just use a series of if/then statements to resolve the various posibilities... any thoughts?