AS Studio: Built app's script source is still editable-HELP

Hi all

does anybody know how to make the script’s source code unreadable and uneditable to the user in a built release, built with AppleScript Studio.

If the source will stay readable it will be impossible to distribute commercial AppleScript Studio solutions.

Any ideas or hints?

Thomas

You simply have to Control-Click the application, choose ‘show package contents’ and navigate to ‘Ressources’ → ‘Scripts’ and you will have full access to the source.

Not that nice, Apple!

Thomas

The following will obscure your code mostly. Variable names etc. can still be worked out.

Set your target style to deployment. Then click on the broom icon, to clean your target and then build your application.

There still is a problem that variable names can still be viewed. But it pretty much does the job you need.

Kevin

Dear Kevin

on first approach it seemed you solved the problem. But after I built the app as you instructed it did not recognize push button clicks anymore and did not work.

Viewing the script showed that it was stricly empty.

Any other idea?

Thomas

I’m not sure,

Something could be wrong with your project, it sounds like your AppleScript is not getting compiled. Since I can’t get debugging to work, I only ever build my projects in deployment mode and as a result I can’t read the source in the executable.

Do you have more than 1 target, and if so did you select the other target at the same time as changing the build style by accident. Try running the deployment version from inside project builder.

Good luck with it.

Kevin

Hi Kevin

indeed, there was something wrong with PB. I restarted the OS, recompiled the project and all is as expected.

Thanks a lot for keeping my mind in a safe state!

Thomas