Re: carriage return & line feeds
Re: carriage return & line feeds
- Subject: Re: carriage return & line feeds
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 06 Jun 2001 19:02:15 -0400
- Organization: [very little]
>
Date: Wed, 6 Jun 2001 12:07:05 -0500 (EST)
>
From: Jonathan Neff <email@hidden>
>
To: email@hidden
>
Subject: carriage return & line feeds
>
>
Hi all,
>
>
I'm writing an inventory report using Apple System Profiler and then I use
>
URL Access Scripting to send the outputFile to an FTP location. The
>
problem that i am having is that the FTP location is W2K, so the
>
end-of-line characters don't work correctly. If I use RETURN to mark the
>
end of each line of my file, they will not show up as separate lines on
>
the remote server. So, I think I need to add another character to the end
>
of my lines so that the lines show up correctly on the remote server.
>
I've tried a few things already, but they either wouldn't compile or
>
didn't work. Anybody have any ideas on how to accomplish this?
>
Currently, I am using a double-tab to mark the end of a line, but I'd
>
rather that this be more readable on the W2k end (it doesn't need to be
>
nicely readable on the Mac end).
>
Thanks!
>
Jonathan
Do you need the combination of a carriage return and a linefeed to end
your lines? I seem to recall that some systems require that. Somewhere
you'd set up a variable containing both characters:
set newEnd to return & (ASCII character 10)
then, down in your write routine you'd say:
write [sometext here] & newEnd to fileRef
Is that what you're looking for?
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/6/01 7:01:11 PM]