How do I Read and Write a list to a file
How do I Read and Write a list to a file
- Subject: How do I Read and Write a list to a file
- From: Alan Kimelman <email@hidden>
- Date: Wed, 6 Nov 2002 00:12:51 -0800
I have been unable to write a list to a file and read it again as a
list. Instead, the Applescript returns a string.
set t to {"abc", "def"}
tell application "Finder"
set Par to "Macintosh HD:Library:Scripts: My Mail:"
set doc to "New Doc"
set a to (Par & doc)
try
close access alias a
end try
set y to (open for access alias a with write permission)
set eof of y to 0
write t starting at 1 to y as list
set z to read y from 1 to get eof y
close access y
end tell
z returns a string "listTEXTabcTEXTdef" that is meaningless to me.
Please explain the syntax of listTEXT and please explain how I can
retrieve a list. Thanks.
Alan Kimelman
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.