When you export the field contents, you must specify a path. The path must be the full path, not just the file name.
set variable: $path ; Get ( DesktopPath ) & GetAsText ( Container )
Something like that to set the path, which would save the file on the desktop.
Thanks for your response. I understand what you are saying, but I don't understand how to save the file path using the set variable function as shown in your post. I've tried several times with no luck. Any other suggestions would be much appreciated. Basically, I just want to be able to batch export all the field contents from out of a portal. I don't really care about what they are named, but I would like to be able to get them out of the portal in one click. The only reason the naming is an issue is because when I set output as, for example, "desktop/untitled" the loop runs and it just keeps re-saving over the same file. I just need it to save each of the separate field contents as a separate file. I mostly intend to use this with PDFs, which I plan to store in my database, but would like to be able to easily export them to work with outside of the database and make annotations and other edits to them.
How about using row number?
Get ( DesktopPath ) & Get ( ActivePortalRowNumber ) & ".pdf"
In the Export Field Contents script step you have to specify (1) the field your are exporting and (2) the output file path, which includes a file name. One of the options for specifying the path is a variable (see screenshot).
If you use the same path for all records, of course FM will simply overwrite. User19752's idea will overcome this.
Thanks to everyone for your help. You are all right, of course, but I just needed to see an actual use of the set variable function and where it goes in the overall script. I found this excellent resource: Exploring the use of a $Path Variable in Scripts by philmodjunk, which showed the following set variable function - Name: $Path; Value: "file:" & Get(DesktopPath) & GetAsText ( Container ) and which showed that this goes directly above the export field contents line of the script. Then you then simply have to type "$Path" in the specify output portion of the export field contents line of script. Worked like a charm. Essentially the same thing that logicurio told me to do, but I just need to actually see it used in a script to understand. Thanks again everybody.