Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Saving a file to be named based on field contents

Featured Replies

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

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

  • Author

Thank you! WOrks GReat!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.