2

I used javascript in my objective-c/cocoa project. But after compiling, I found that all script files list in .app content. Is it possible to hide the scripts or add them to unix executable file?

Welcome any comment

1
  • what do you mean by add them to .app? its already in .app content. Commented Sep 29, 2012 at 9:24

1 Answer 1

1

Create hidden javascript file(begins with a dot “.”) and Copy that file in Bundle Resources build phase.

Sign up to request clarification or add additional context in comments.

4 Comments

This will still include the files in the app's Resources folder; Finder just won't list them (unless a hidden preference is set). It'll still be possible to list them, read them, or change them by other means.
op can also use apple script to execute java script.
While true, that's incredibly roundabout and unnecessary, and won't solve the problem of hiding the JavaScript code.
op can execute that script using NSAppleScript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.