See this thread on using a $path variable to save a PDF to a designated location with a name assigned by your script: Found Sets to PDF with unique file names
I must say that the link I see is complete Chinese to me ;-) In my script I have save as PDF. So if I can follow correctly, if I want the PDF saved with the name of a certain field, I need to add "Set variable".
But how I can define that correctly I can't follow.
(also my version of filemaker is Dutch, it makes it a bit harder to follow ;-) Is it possible to reset the language of the user interface?