I need a generic "Export PDF" script, to which I pass the target field and output file name as parameters. Because I can't use a variable when specifying the target file, I'm trying to use object names, thus:
Set variable [$targetFile; Value: (param1)]
Go to object [Object Name: (param2)]
Export Field Contents ["$targetFile"; Automatically open]
But I'm getting an error 102. So obviously the "Go to object" is not making the field active. What should I be doing?