• 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
Re: End of file error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: End of file error


  • Subject: Re: End of file error
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 16 Jan 2001 19:49:08 -0800

On 1/16/01 4:17 PM, "Nigel Garvey" <email@hidden> wrote:

> 3) If you're referring to the file by file specification instead of by
> 'open' reference and the file is still open from having been read through
> with another reference and the 'read' command adopts the other reference
> instead of the one you've just opened.

Thank you, Nigel.

That's certainly one to look out for, but wouldn't happen in this particular
script so I'll be OK. Since reading your last post on this topic I always
use the 'open' reference. Thanks for the details, Nigel. I tried Akua's
'open fork from' and 'read data from', which gives "" and doesn't error when
the file is empty. However it also just gave "" when there was lots of text
in the file - don't know why. (Emmanuel will not be surprised, I believe.)
So I'll go back to to the normal read command and trap for error number -39.
Thanks, Shane, too for the quick response.

--
Paul Berkowitz


References: 
 >Re: End of file error (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Replacing characters in filenames
  • Next by Date: Re: Replacing characters in filenames
  • Previous by thread: Re: End of file error
  • Next by thread: scripting the Script Editor
  • Index(es):
    • Date
    • Thread