Re: Problem with writing a list
Re: Problem with writing a list
- Subject: Re: Problem with writing a list
- From: Christopher Nebel <email@hidden>
- Date: Tue, 2 Oct 2001 17:47:18 -0700
On Tuesday, October 2, 2001, at 12:57 AM, Jean-Marie Hoornaert wrote:
I have some problems with the "write... to..." command from the
"Standard
additions" osax.
With a list like :
{"First", "Second", +data PICT ...;},
I get someting like (possibly the follow line will not be correctly
transmitted by mail) :
listTEXTFirstTEXTSecondPICTCC,qjF
(I trunc the PICT data)
And when I read the document, the result is this impossible to use
character
sequence.
Without the PICT, I can use an other item delimiter (tab for example),
but
with the PICT data, I've got en erreur when I do this.
If you just say "read my_file as list", it should correctly reconstruct
the original list, PICT and all, from that otherwise impossible-to-use
data. Reading and writing lists as raw data didn't work reliably prior
to AppleScript 1.6, but I think it worked if the list was completely
flat (i.e., none of the items were lists or records.)
--Chris Nebel
AppleScript Engineering