Mac OS X,  Mac OS X Server,  Programming

Decompile Non-ReadOnly AppleScripts

Forgot to save the source code of those AppleScripts in a place you can find it again before you compiled? Quick and dirty, provided you didn’t save it as ReadOnly, you can grab the source of an AppleScript using osadecompile. Just feed it the app (not the applet or the main.scpt btw), as I do with /Users/charlesedge/Documents/mycompiledapp.app below:

osadecompile  /Users/charlesedge/Documents/mycompiledapp.app

Easy peasy.