Re: Lists and writing to file
Re: Lists and writing to file
- Subject: Re: Lists and writing to file
- From: Christopher Nebel <email@hidden>
- Date: Thu, 3 Sep 2009 18:39:55 -0700
On Sep 3, 2009, at 2:25 PM, Peter Baxter wrote:
I solved my problems with the lists through judicious use of
ignoring white space and punctuation
However when I write to file the result looks like this:
list\utxt
utxtADA,utxtSCI7B,utxtSCI7G,utxtSCF10B,utxtCH022,utxtCH034,utxt
utxtAND,utxt
IP7B,utxtDRA7G,utxtDRA7O,utxt
IP8B,utxtART8O,utxtART8R,utxtART9B,utxt909SD,utxt909CD,utxt
COMP,utxt
utxtBAP,utxtMUS7B,utxtMUS8B,utxtMUS8G,utxtMUS9A,utxtSMU10,utxt
MC012,utxtMC034,utxt
utxt
instead of this:
ADA,SCI7B,SCI7G,SCF10B,CH022,CH034,
AND,IP7B,DRA7G,DRA7O,IP8B,ART8O,ART8R,ART9B,909SD,909CD,COMP,
BAP,MUS7B,MUS8B,MUS8G,MUS9A,SMU10,MC012,MC034,
as it appears in the result window. What is going on with the
"utxt" stuff?
Writing an AppleScript list to a file writes a binary representation
of the list, such that you could read it back and get the exact same
list value. What you want to write is really a textual representation
of the list, so you should create that text (such as by using text
item delimiters with "as text", as shown before) and then write that
to the file.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden