October 7, 200916 yr What I'm trying to do a s part of a larger function is get filemaker to save a .txt file with a name that is generated by the contents of a field. For example: I'm tracking vehicle license plates, I input a license plate "ABC123". What i want to do is have a script save this as a content as a txt file, and name it as ABC123. Is this at all possible with filemaker scripting? I know I can save the contents, but naming the file is the issue. Thanks, Ron
October 7, 200916 yr Yes, you can do this easily. When you use the Export Records or Export Field Contents, you'll see how you can set the Export Path. This is where you create the file, give it a destination and name. You say that you are creating a .txt file? Are you exporting a record(s)? Your script would go something like: Set $ExportPath, Get (DesktopPath) & fieldname & ".txt" Export Records $ExportPath
Create an account or sign in to comment