• 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: Strange Error Reading File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Error Reading File


  • Subject: Re: Strange Error Reading File
  • From: Richard Morton <email@hidden>
  • Date: Tue, 6 Apr 2004 10:17:05 +1000

On 6 Apr 2004, at 12:51 AM, David Crowe wrote:
...I still don't understand the end of file error.

It's not a timing issue because if the file is bad I can read it a second time and get the same error. And it's a mystery because if I download it again it almost always works and a comparison shows that the files are identical.


David Crowe wrote on Sat, 3 Apr 2004 11:47:39 -0700:

I am having strange errors reading small text files with Applescript.

The code in question is:

set ImportFileRef to open for access AFile

If 'AFile' is a path string:

"Mac HD:folder:file"

Then it will work the first time but fail subsequently. The 'open for access' command requires a file spec, so perhaps that is the problem. Try this:

set ImportFileRef to open for access file AFile


Cheers,

IO
_______________________________________________
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.


References: 
 >Re: Strange Error Reading File (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Strange Error Reading File
  • Next by Date: A Faster Script
  • Previous by thread: Re: Strange Error Reading File
  • Next by thread: Re: Strange Error Reading File
  • Index(es):
    • Date
    • Thread