This will be your script for a windows computer. You must have a folder named pdf. Note you can chagne the drive letter, folder, and filename. The file will be given the name DailyReport_CurrentDate.
Set Variable[$pdfPath;value:"filewin:/c:/pdf/DailyReport_"& Substitute(Get(CurrentDate);"/";"_")&.pdf]
Save Records as PDF[Restore;Nodialog;"$pdfPath";Records being browsed]
See Creating file paths under file maker help for mac paths.
OS (Win Mac) version? Filemaker Version?
I would start with a relative path - the database is somewhere on your C: drive I assume.
Relative path to a folder named PDFs next to the database fileThe path to a target file specified from the current database’s location. If the current database is opened remotely, the path starts from the local FileMaker Pro directory
Once you have that working correctly, assume you will be mounting the network drive or folder as a constant drive letter L: ?
Home > Designing and creating databases > Creating a database > Creating file paths
If you use "file:" instead of "filewin:" or "filemac", you can set up a calculation for the file path that works on both systems without need to change it or include an if function that uses different text for different platforms.
See this thread for more on Save as PDF: Found Sets to PDF with unique file names