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

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

Recommended Posts

Posted

Can anyone help me to understand how I can script a unique file name when performing an xml export.

I would like to automate an export which creates a file with unique and meaningful name. Ideally I would like to take data from a single record's field and insert that as the filename.

For example if I am exporting a client record I would like the xml export file to be named "smith.xml".

Posted

No takers I see smile.gif

You can't do it natively in FileMaker. What you need to do is create the export file with the hard-code file name, then use either a plugin or some native OS scripting to change the file name to what you want (Applescript, VBscript).

I'll showing exactly that at this year's filemaker developer conference.

HTH

Wim

  • 2 weeks later...
Posted

Thanks for the reply.

Another problem I have is that when I write a script to place a file on the desktop it only works on the machine that created the script. I have 2 client machines connecting to an FM5 Server and need either client to create the file and place it on their own desktop's.

Any ideas?

Posted

Excepting for using a plug-in, the best option is *not* to specify the location of the file in the Export script step. Let the user save it to their own disks where ever they prefer.

This is a bugger if the saved file is then further processed: in this case about the only thing to do is to get one of the plugins that allow more control over files. Troi makes some that are often mentioned here.

This topic is 7478 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.