path is missing - not just the name of the file needed here
script could look like this (I'm on iPad, no way to have the scriptworkspace open, therefore check for the correct syntax!)
set variable ($MyPath; get(DesktopPath) & "filename.pdf")
save records as pdf (... $MyPath ...)
there are good examples in the online help of FileMaker
Thanks so much! This solved my problem. Truly appreciated.