I need to edit its code but forgot to make a backup editable copy of it. I know that usually there’s no way back, but maybe there’re some exotic methods to try?
Model: MacBook Pro
AppleScript: 2.2.1
Browser: Safari 534.57.7
Operating System: macOS 10.7
Sadly, you’re out of luck.
Maybe, THIS DISASSEMBLER?
The author of the code promises a lot, but I have not tried it myself yet.
As I am curious, I installed the disassembler.
I tried to use it with :
set CLI to POSIX path of ((path to home folder as text) & "applescript-disassembler:disassembler.py")
set theFile to quoted form of POSIX path of ((path to desktop as text) & "Sans titre Run-Only.scpt")
do shell script CLI & space & theFile
I just got : error “env: python2: No such file or directory” number 127
and don’t know what to do with that.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mardi 25 février 2020 11:29:14
You can use it by running disassembler.py at the command line, but first you must make it executable using something like chmod +x. On a simple test script with just a display dialog “Hello”, I got:
=== data offset 2 ===
Function name : <Value type=object value=<Value type=event_identifier value=‘aevt’-‘oapp’-‘null’-‘\x00\x00\x80\x00’-‘****’-‘\x00\x00\x90\x00’>>
Function arguments:
00000 PushLiteral 0 # [, ]
00001 Push0
00002 MessageSend 1 # <Value type=object value=<Value type=event_identifier value=‘syso’-‘dlog’-‘askr’-‘\x00\x00\x00\x00’-‘TEXT’-‘\x00\x00\x00\x00’>>
00005 Return
I don’t think that’s the sort of thing the OP was hoping for.
Thank you.
On my machine I found only python2.7 and got the same error when trying in Terminal.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mardi 25 février 2020 16:35:07