• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Write to file - another question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write to file - another question


  • Subject: Re: Write to file - another question
  • From: Sander Tekelenburg <email@hidden>
  • Date: Wed, 28 Feb 2001 00:56:59 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 16:40 -0600 UTC, on 27/02/2001, email@hidden wrote:

> This has to do with using a text file created on a Mac on a windows box.
> When I am writing to a file, and add a return to the end of a line like
> this
>
> write return to file starting at eof
>
> windows doesn't recognize that as a new line. Is there something other than
> or in addition to 'return' that will give you the new line in addition to
> the carriage return?


I believe the issue here is 'just' that Windoze does something wacky in the
LineFeed/carriage return area. AFAIK you can write Windows 'returns' by
writing the corresponding ASCII character directly. I believe you're looking
for ASCII character 13, but I'm not 100% sure. This will get you all ASCII
acharacters:

set theChar to 1
repeat 255 times
get ASCII character theChar
--delay 1
set theChar to theChar + 1
end repeat

Hope it gets you the one you need ;)


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOpw+resywKfXgqKdEQIKggCglmqkXy7MhvWbKbKjOE7DpSZUejwAoLMa
Wl/dX1rROUUZX30gz9nXbQs4
=NOTv
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <mailto:email@hidden>
Web site at <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"


References: 
 >Write to file - another question (From: email@hidden)

  • Prev by Date: Network Setup Scripting error
  • Next by Date: Re: Handler joy
  • Previous by thread: Write to file - another question
  • Next by thread: Re: Write to file - another question
  • Index(es):
    • Date
    • Thread