Whenever I export an Applescript app from Xcode, in the resources folder, there is the unprotected source code. Someone else has changed the source code a bit and has begun distributing my app as his own. Is there anyway to compile or encrypt this code on export?
In your project's build settings there is an OSACompile - Build Options section where you can select the option to Save as Execute-Only. The run-only script isn't encrypted, but I haven't heard of anyone taking the time to decompile one. Note that even though the script is no longer easily readable, text strings and variable/method names can still be seen.