You are not logged in.
Can anybody help me out.
I always backup my stuff. But not this time, not this time that I worked a very long day on the improvement of my script.
And my mac crashed when I was in the middle of a version that would not save because I was halfway coding a new part in the script.
Now when I want to open the script (.scpt) AppleScript acts as if it will open, but then immediately crashes.
That is only the case with this script file. Other script open just fine.
I can open the file with a text editor, but that looks weird and is some machine code weird row of all kinds of characters and here and the a variable name.
In that it looks the same as any other AppleScript script that I open with a text editor.
Does anyone know of a way to restore or retrieve as much information from the file as possible ?
Mac book pro
OS X 10.7.5
Please do not start the "you should have backed up" thing.
I know. I just know and it hurts. Let's see if something can be done. Otherwise I'll start over...
Browser: Safari 534.57.2
Operating System: Mac OS X (10.7)
I am sorry for you.
Try downloading a 20 day evaluation copy of Script Debugger. Maybe it can restore it for you. Maybe
Last edited by McUsrII (2012-11-29 07:23:44 am)
You can try the command line tool osadecompile. It might work. If it does it will give you the text of the script.
set f to choose file
do shell script "osadecompile " & quoted form of POSIX path of f
And if everything else fails, you can try xxd from the commandline, but then you'll have to copy and paste, and reassemble your script. Enter man xxd in a Terminal window.
You made my day! the osadecompile worked!
No idea what it did, but it did what it had to do.
Thank you so much!
And thanks to McUsril, too. I didn't tried your solution, because regulus' solution worked, but I appreciate your input.
Happy scripting from now on.
(and backing up... right now, of course)
Glad it worked for you, I learned something new as well.
The trick is, is to put all the stuff you don't care about in a TimeMachine backup quarantine, marking them, so they aren't included, so those backups, doesn't take that long!