Compiling Applescript from command line....

Hi guys,

Can anyone tell me how to compile Applescript scripts from command line as we need to build packages for our release from command line?

Thanks and God Bless.

Ben.

Hi,

command osacompile

/usr/bin/osacompile -o /path/to/applicationbundle.app /path/to/textfile.txt

creates an application bundle, read the man page for further details

Thanks for your answer Stefan…can I just say osacompile instead of the /usr/bin, and also if I have a packaged script file with the localization stuff in it, can I use it with the “-o software.app” element to create the clickable application?

You can, but for portability of your scripts it’s a much better style to use always the full path

I don’t know, just try it :slight_smile: