Yes, If you construct the whole path + file name in a variable, you can then specify that variable in the "save as" or "export" script step.
Note that you can only specify a variable in that "specify" dialog, it is not a calculation window, you can not put a calculation there.
Hi Mike. Here is a calc I use to set up a path to both save and retrieve. I use it in scripts, as suggested by wimdecorte, to save the pdf (using the $filepath variable) and also to insert the pdf itself into container field (using the $imagepath variable):
mainpath = "/yourHD/(—the directory FMS uses, such as—Library/FileMaker Server/Data/Databases, or whatever you wish to use with FMP)/yourFolder/yourSubfolder(s)/" ;
name = <calc here based on record being exported> & " quote " ;
date = Month ( yourDatefield ) & "–" & Right ( Year ( yourDatefield ) ; 2 ) ;
extension = ".pdf" ;
thedoc = mainpath & name & date & extension ;
$filepath = "file:" & thedoc ;
$imagepath = "image:" & thedoc ] ;
$filepath & "¶" & $imagepath )