Read data from a file in Standard Additions" broken in AS Version >1.4
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?