Re: converting text to dos format
Richard, When not on Mac OS X, you need to replace linefeed with crlf, convert text to ISO and write the file as binfile, e.g. put fld 1 into myVar put macToIso(myVar) into myVar replace lf with crlf in myVar put myVar into url binfile:~/desktop/file.txt -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 8/25/2013 22:46, Dr. Hawkins wrote: Apparently, the ECF filing system used by federal courts expects the whole world to be in dos format. When I write a file from livecode on OSX, and then upload that file, ECF fails to recognize that there is more than one line (but when I dump from openoffice, I'm fine). I need to override the behavior of accommodating the host filesystem in livecode, and dumping exactly what that idiotic system expects. would it be something like replace cr with cr lf (where I first define as ascii 10)? Or with lf cr? It's been a *long* time since I've dealt with dos, or dos filesystem for anything other than going back and forth between BSD and Linux (historically, both do quiet damages to the other's file system) thanks ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: converting text to dos format
On Sun, Aug 25, 2013 at 1:55 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: When not on Mac OS X, you need to replace linefeed with crlf, convert text to ISO and write the file as binfile, e.g. put fld 1 into myVar put macToIso(myVar) into myVar replace lf with crlf in myVar put myVar into url binfile:~/desktop/file.txt It's not so much not on macos, but that this runs on macos, but the remote system apparently expects dos (I *assume* they actually run unix, but the thing is so sloppy that a server on windows wouldn't surprise me . . .) My code needs to produce a file that can be sent to this remote system regardless of my host os. So would I use mactoiso binfile like this on osx and linux, but just the filed and file if running on the dark side? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: converting text to dos format
Hi Richard, I don't know how you are uploading the data to the remote server, but probably you don't need to use binfile. Just use macToIso to convert the data, replace cr with crlf and upload your data. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi Fill out this survey please http://livecodebeginner.economy-x-talk.com/survey/ On 8/25/2013 23:12, Dr. Hawkins wrote: On Sun, Aug 25, 2013 at 1:55 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: When not on Mac OS X, you need to replace linefeed with crlf, convert text to ISO and write the file as binfile, e.g. put fld 1 into myVar put macToIso(myVar) into myVar replace lf with crlf in myVar put myVar into url binfile:~/desktop/file.txt It's not so much not on macos, but that this runs on macos, but the remote system apparently expects dos (I *assume* they actually run unix, but the thing is so sloppy that a server on windows wouldn't surprise me . . .) My code needs to produce a file that can be sent to this remote system regardless of my host os. So would I use mactoiso binfile like this on osx and linux, but just the filed and file if running on the dark side? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: converting text to dos format
On Sun, Aug 25, 2013 at 3:35 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: I don't know how you are uploading the data to the remote server, Firefox (or any other web browser, I suppose, at least the ones they didn't screw up (did I mention that ecf is an abomination?) but probably you don't need to use binfile. Just use macToIso to convert the data, replace cr with crlf and upload your data. OK, but do I need a switch here to *not* do this if running on windows? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: converting text to dos format
Hi Richard, MacToIso: yes replace cr with crlf: no -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. On 26 aug 2013, at 01:00, Dr. Hawkins wrote: OK, but do I need a switch here to *not* do this if running on windows? thanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode