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.

Exporting multiple files: variable filenames

Featured Replies

Hey all,

Is there a way to use the Export Records script step with variable filenames? I'm writing up a script which will loop through certain found sets and then each time export an HTML file, but right now I can't figure out how to export a new HTML file each time ScriptMaker goes through a single loop.

I'm currently using FMP7 and therefore am not able to utilize the Troi plugin. Any other solutions that anyone can think of?

Much appreciated.

If you don't specify the output file, you can define what it should be at the time of each export. Otherwise, there is no way to use a field to determine the filename, unfortunately.

Hi genostar,

I suppose that v7-compatible versions of Troi File or DialogMagic (or maybe some of the other plug-ins that support renaming of a file) are in the works and are probably not far off.

If you need to move now, however, there may be options you could explore using OS-level scripting (eg AppleScript or VBscript depending on your platform) to rename the exported file in each pass of the loop.

  • Author

Great everyone! Thanks for the responses. I'll look into VBScript, then.

  • Author

Woohoo, a new FMP7-compatible version of the Troi plug-in is out!

  • 1 year later...

Well this answers my question, but I am very disapointed, that to use a field value to name the export value i would have to call and os level script then use activeX automation to call back into filemaker to get the filename. I wonder if this has been adressed in version 8?

Yes, and SlimJim has told us how to do it in a recent post:

http://www.fmforums.com/forum/showtopic.php?tid/169350/post/173763/#173763/

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.