Jinmo/applescript-disassembler

Not able to launch the thing

TyrfingMjolnir opened this issue · 5 comments

$ python2 ./disassembler.py /opt/dev/applescript/some.scpt
Traceback (most recent call last):
File "./disassembler.py", line 153, in
main()
File "./disassembler.py", line 20, in main
f = load_file(path)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 253, in load_file
r = readObject(0)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 223, in readObject
data = readValueBlock(id, size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 90, in readValueBlock
r = _readRefList(size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 78, in _readRefList
R.append(findObject(refId))
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 66, in findObject
refMap[refId] = readObject(refId)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 227, in readObject
data = readUntypedPointerBlock(id, size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 101, in readUntypedPointerBlock
r = _readRefList(size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 78, in _readRefList
R.append(findObject(refId))
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 66, in findObject
refMap[refId] = readObject(refId)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 223, in readObject
data = readValueBlock(id, size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 90, in readValueBlock
r = _readRefList(size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 78, in _readRefList
R.append(findObject(refId))
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 66, in findObject
refMap[refId] = readObject(refId)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 227, in readObject
data = readUntypedPointerBlock(id, size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 101, in readUntypedPointerBlock
r = _readRefList(size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 78, in _readRefList
R.append(findObject(refId))
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 66, in findObject
refMap[refId] = readObject(refId)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 229, in readObject
data = readCodeId(size)
File "/opt/dev/applescript-disassembler/engine/fasparser.py", line 111, in readCodeId
constTable[v] = v
NameError: global name 'constTable' is not defined

Jinmo commented

Thanks for the report! I forgot to update some bugfixes. I pushed the patch. Can I ask is it working now?

If you clone from https://github.com/TyrfingMjolnir/applescript-disassembler it should work. I also update ReadMe and a pull request for you to pull it back into your repo.

There are some more stuff that I did on my repo, but I'm not able to make another PR in the web inteface, I find web interfaces confusing.

Jinmo commented

Thanks! I'll check the PR now.