Re: Bytes into integer
Re: Bytes into integer
- Subject: Re: Bytes into integer
- From: Steve Roy <email@hidden>
- Date: Fri, 13 Feb 2004 10:33:13 -0500
Emmanuel <email@hidden> wrote:
>
If indeed your integers are coded on 3 bytes, then I discard my post.
>
>
However if you're working with a standard binary file, where numbers are
stored
>
as an even number of bytes, then you may be underestimating AppleScript's
"read"
>
command
I know about all the possibilities of the 'read' command, and use it. However,
my problem is that I need to read an integer out of 3 bytes. If it was 4, I
could do this:
read theFileRef for 4 as integer
But when I do
read theFileRef for 3 as integer
I get a parameter error, so I'm trying to work around that.
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.