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

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

Recommended Posts

Posted

The "Export Field Contents" feature that was added in version 7 is a nice feature, because there is finally a way to export data with line breaks intact. However, text field contents only export as Unicode which is incompatible with many applications. I thought that changing the field options language setting might do the trick, but no. So, some form of post processing is still required. Has anyone found a way to force the text encoding of the export text to ASCII or some other equivalent 8 bit coding?

Posted

Unfortunately, this needs to run on both Windows and Mac. I don't actually have any problems with the Mac version; it's the Windows one that's the problem. I guess if I could find some windows based text conversion utility, I could do it with a command line from a Send event script step. But, if I have to do that, I'm no better off than using the standard export.

Posted

Well, at least I found a neat solution for the Mac platform. After learning some basic unix commands I came up with a single line shell script that both converts the file from unicode to ascii and renames it.

do shell script "tr -d '000376377' <~/desktop/FMExportFolder/output.txt>~/desktop/FMExportFolder/<<FN>>; rm ~/desktop/FMExportFolder/output.txt"

I put the above text in a global field gConvertApplescript

And then in the perform applescript step I use this formula

Substitute(gConvertApplescript;"<<FN>>";ExportFileName)

The file is exported with the name output.txt, and then converted and renamed to the name stored in field ExportFileName

Now, if anyone knows of a similar thing that could be done in a Windows command line, I would really like to hear about it.

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