• 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 data from a file in Standard Additions" broken in AS Version >1.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read data from a file in Standard Additions" broken in AS Version >1.4


  • Subject: Read data from a file in Standard Additions" broken in AS Version >1.4
  • From: Josef Kleine-Jaeger <email@hidden>
  • Date: Wed, 30 Jan 2002 11:18:46 -0500

When running the following script in AS version 1.4 it works just fine!
The intend is to read as short integers (2 bytes).

set theFile to choose file

open for access theFile
set theContentasShort to read theFile as short
close access theFile

display dialog "theContentasShort" & return & theContentasShort

When running the same script in AS version 1.6 or 1.7 errors with the
following message!

"Can't make short into a class type!"

Is this going to be fixed or is there a work around?


  • Follow-Ups:
    • Re: Read data from a file in Standard Additions" broken in AS Version >1.4
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: [rant] Upgrade to 9.2, any advice?
  • Next by Date: Paper Size in QX
  • Previous by thread: Launching by variable in OS X
  • Next by thread: Re: Read data from a file in Standard Additions" broken in AS Version >1.4
  • Index(es):
    • Date
    • Thread