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.

File Export Script

Featured Replies

I am trying to automate an export function via script steps.

After record are exported to Excel, an e-mail is dispatched telling users that the latest edition of the file is ready for review.

I can handle all this. The thing I can't do is take the next step and fully automate the process (I want this cycle to run once or twice a week without any human intervention).

I've encountered a problem: the script freezes when the file exports to an Excel directory because the filename already exists.

Should I go the DDE route (and have the script queue a command that goes to the Excel directory and deletes the previous file prior to running the script that generates the current one)?

Or is there some FM way of making the file name the product of a calculation - so that each week or so the script is renamed by the addition of an alphanumeric character (so that this week the file is myfile.slk and next week it is myfile1.slk)?

quote:

Originally posted by Chuck:

You should be able to manually do the export, save the file replacing the file in existance, and then open and close your script, replacing the export options.

FileMaker can't dynamically name files it exports. I've gotten around this on a Mac with AppleScript, so maybe there's a similar workaround on Windows.

WinBatch on the Windows platform works very similiar to Applescript and Quickkeys and can do the same kind of things.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

You should be able to manually do the export, save the file replacing the file in existance, and then open and close your script, replacing the export options.

FileMaker can't dynamically name files it exports. I've gotten around this on a Mac with AppleScript, so maybe there's a similar workaround on Windows.

Chuck

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.