Jump 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.

Automated Unique Naming of Export file

Featured Replies

  • Newbies

I am struggling coming up with a solution. I need to be able to create a unique export file name using a field. Each export will drop a tab delimited file on an FTP site, but the filename must be unique. I can do this manually, but am looking for a way to use the existing serial number field to automatically create the export file name. Any feedback is very appreciated.

Thank You

Larry

Hi, Larry! If your export file name must truly be unique, then using an existing record-based serial number may result in a repeated name if it's the same record(s). You may want to play w/datetime strings in conjunction with some other qualifier just in case there are simultaneous (<1 second) exports. Something exported at 1:41:49pm on July 26, 2004 would be something like

20042607134149-qjxtd or something

Assuming you get a name, though, does FM let you use that name in the export? I assume you are scripting this and doing the export w/no dialog? I haven't done/tried it but it seems interesting...

--ST

  • Author
  • Newbies

Hi Steve,

Thanks for the reply. I agree with the naming, Thanks. Right now I just have a script that copies the field to memory and then the user does a manual (CTRL-V) paste in to the export file name dialog box. I was hoping to be able to autmate that portion.

--LArry

Hi, Larry. This can be automated with Troi's File plug-in. You'd export the file to C:somePathsomeName.tab, then use Troi File to rename it to the value of some field (you could also change the directory with this plug-in).

AFAIK, there's no other way to do this.

HTH

Jerry

There's a lot i don't like about Macs, but i keep seeing you guys refer to Applescript, and i really really wish there was an equivalent for Windows. Maybe i'll go to the MS Forums website and post this in the "Wish List" section... I hear they're very responsive to their customers. biglaff.gif

J

Create an account or sign in to comment

Important Information

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

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.