Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5526 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

This topic is 5526 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.