• 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
Read - testing for EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read - testing for EOF


  • Subject: Read - testing for EOF
  • From: Chap Harrison <email@hidden>
  • Date: Mon, 19 Jan 2004 19:52:44 -0600

How do you know when you've reached EOF when reading a file sequentially, record by record?? (using Standard Additions read)

Reading when at EOF seems to *usually* throw an error, which can be caught in a try... on error block, but it doesn't seem to be dependable. Sometimes it returns the final record twice before throwing the error; sometimes it returns a null record infinitely.

Thanks,
Chap

PS - Am I missing a vital documentation resource? Please let me know - I can't believe I'm having such a hard time finding answers to these simple questions myself. :-(
_______________________________________________
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: Read - testing for EOF
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Mute not scriptable?
  • Next by Date: Setting the due date of an existing task in Entourage to 'no due date'
  • Previous by thread: [ANN] Free AppleScript Course
  • Next by thread: Re: Read - testing for EOF
  • Index(es):
    • Date
    • Thread