• 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: Bytes into integer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Bytes into integer (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: FileMaker question
  • Next by Date: Re: delay 1 millisecond in Panther
  • Previous by thread: Re: Bytes into integer
  • Next by thread: Re: Bytes into integer
  • Index(es):
    • Date
    • Thread