Basically, add a bit more path. For example, after the Get ( DesktopPath ) part of your script add in
& "/MyFolderName/" &
The MyFolderName is the name of the folder you want the pdf saved to that you have previously created on the desktop. This can be either a hard-coded name as above, or you could create a global text field into which you enter the name of the folder you want it saved to (setting this name into the global field earlier in the script of course). e.g.
& "/gloFolderName/" &
Instead of using Get(DesktopPath), you could try using Get(TemporaryPath). This way, the PDFs will not need to be saved to your Desktop, and the files cleared from the temporary directory when you quit FileMaker....
Thanks so much!