I had to convert a 16 bit integer
into 2 bytes.
these line works.
have fun.
set my16bit to 257
set LSB to (my16bit / 256) as integer
set MSB to my16bit - LSB
display dialog "LSB: " & LSB & return & "MSB: " & MSB
gregjsmith wrote:Interesting. Why would you need to do this?
support wrote:I have written a utility application for making communication with serial hardware easy from AppleScript. It still needs a bit of polish, but I plan on posting a beta in the next few days. It will be handy for communicating with all sorts of serial hardware (thermostats, X10 interfaces not supported by Indigo, etc.). I wrote it to do some custom Crestron communication I needed, but figured I would package it up as a utility application to sell for a few bucks.
Users browsing this forum: No registered users and 18 guests