Memoirs of Fls'Zen

Thursday, March 30, 2006

AppleScript Hacking

So I didn't take enough time to decide how variable addressing works, but I hdid reverse-engineer the if statement (and some of variable assignments. My notes follow:

if statements:
4f 4f: initiator?
c2 c0: comparison variable 1
c0 c2: comparison variable 2
00: "is", 01 means "is not" -- handy to switch to change application logic
1d: I assume a type of comparison.
00: a trailer char?
08: length (including this char) until end of block 0x68.

// this contents is empty
68: ?
59: ?
00: ?
03: ?
// end of this

// this contents is assigning an arbitrary string to c0 variable
// (by comparison). Seems any strings used in ifs are defined
//during compile.
c0: this is the variable id. (same as in the if)
e4: this is the constant string defined.
00: ? end of command I suppose?
59: ? seems const?
00: ? seems const?
03 or 4f: 03 seems to mean end (68 follows) 4f seems to mean continue. SEe ASSIGNMENTS. the last 4f is a 59 instead.
// end of this
68: end of block
^^^ needs work for blocks

ASSIGNMENTS:
c0: variable id
e1: string id
00: ? maybe this is the assign and 4f is the end marker? That would explain the change to 59.
4f: assign?

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home