• 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
Can't read text file from 0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't read text file from 0


  • Subject: Can't read text file from 0
  • From: Matthew Broms <email@hidden>
  • Date: Thu, 16 Aug 2001 15:42:21 -0400

I wrote a script on my machine that attempts to read a file starting at 0
verses 1. When I sent the end user the script for use in production, their
machine would error out on on this call.

set theBegin to 0
set openFile to open for access file myTextFile
set rawData to read openFile from theBegin to eof

After a lengthy search for this inconspicuous problem, I just changed the
value to 1 and it worked fine for my end user. Strangely enough though,
both 0 or 1 worked on two systems here successfully with the same results
and never an error. All parties are using 9.1 and AS 1.6. Obviously I've
determined a fix, but these inconsistencies don't sit well with me.


Matt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  • Prev by Date: Re: AppleScript program to execute files
  • Next by Date: RE: Compact Handlers Togo!
  • Previous by thread: AS syntax for Cyberdog
  • Next by thread: URL Access problems
  • Index(es):
    • Date
    • Thread