Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding Applescript code



If choosing the deployment build style doesn't do it, try this line in a terminal window:

osacompile -x -d -o outputpath inputpath

The input path would be the path right to the script inside the package contents. The x switch makes the script run only, the d switch puts the results in the data fork. For more details, read the man pages. You can type the first part of the command in the Terminal window (up to the space after outputpath), then drag and drop your script from inside your package onto the window.

I have a few parts of my Script Timer application written in AppleScript, and this is what I do. I'm working with Project Builder in Jaguar at the moment, and choosing Deployment build style didn't make my scripts run only. Maybe it is different in xcode.

HTH,

Don

At 10:00 PM -0800 2003/12/17, email@hidden wrote:
At the moment the Applescript for my Applescript Studio application is
readable by "show package contents". Is there a way to hide this from
view? If I try to save it as run only outside Xcode it does not compile
and I cannot see how to make it run only inside Xcode.
Is it possible?
Sorry to ask a basic question like this but it has me stumped.

John

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.