Jump to content

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

Recommended Posts

  • Newbies
Posted

Hi,

I need to let my FMP ULTD 6.0 application's users to export FM data into text (Tab separated) file.

Now, I've reached this goal with a CDML "-script" instruction, but I also need that these text file have different name from time to time.

I.E.:

the first time user XXX produces the text file, this will be named XXX001.tab, the second time the same user produces another text file, this will be named XXX002.tab and so on.

Is there anyone knows the way to dinamically renaming my exported files?

Thank you.

E.M.

Posted

Hi, I think this has been discussed in the Applescript forum, which IMO is the way to go. I If you're on a PC, that's not much help

If you really need an increment by one each time, I think you're gonna have to use a little database which creates a record each time the script is run and then call the value of its last "record number" field to get your export number.

'Cos I'm lazy and not really a wizz at Applescript I'd export the file with the name as normal and then run an Applescript that renamed it afterwards using a FileMaker field as the value. Better folk than I on the list would have a more elegant solution.

You could even do that with a folder action.

on adding items to the folder

call your file name variable in from Filemaker by doing a search action

set the name of file (thefilename) to the variable

regards, jeff

  • Newbies
Posted

I'm currently using PC platform and soon moving to suse.

Thanks.

regards,

E.M.

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