Restore corrupted AppleScript script

Hi all


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 ?


Thanks

Rienk


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...

MacPro dual Core, Mac OS X (10.6.4), MacPro DualCore, FCP 7.0.3, Decklink Extreme HD

Posted on Nov 28, 2012 10:39 PM

Reply
2 replies

Nov 29, 2012 2:08 PM in response to Camelot

Thanks Camelot


Thanks for your input!


I also posted this question on the MacScripter Forum. And just received another solution there. As well as your solution, but I tried the other one first.


For those who are interested:

this is the solution that worked for me:

write an Applescript with this code:


set f to choose file

do shell script"osadecompile " & quoted form of POSIX path of f


And then run the script. It worked!. It returned my script as text in the result window of AppleScript.


Here's the thread on MacScripter forum:

http://macscripter.net/viewtopic.php?pid=158147#p158147


best

Rienk




http://macscripter.net/viewtopic.php?pid=158147#p158147

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Restore corrupted AppleScript script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.