• 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
How do I Read and Write a list to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How do I Read and Write a list to a file
      • From: Emmanuel <email@hidden>
    • Re: How do I Read and Write a list to a file
      • From: Sander Tekelenburg <email@hidden>
    • Re: How do I Read and Write a list to a file
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: Cumulus Client: Getting Subcategories
  • Next by Date: Re: How do I Read and Write a list to a file
  • Previous by thread: URL Access Scripting again
  • Next by thread: Re: How do I Read and Write a list to a file
  • Index(es):
    • Date
    • Thread