Tuesday, January 21, 2020

#1 2008-04-01 08:50:54 am

ChristInBen
Member
Registered: 2008-03-27
Posts: 66

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.

Offline

 

#2 2008-04-01 08:57:25 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11641
Website

Re: Compiling Applescript from command line....

Hi,

command osacompile
[code]/usr/bin/osacompile -o /path/to/applicationbundle.app /path/to/textfile.txt[/code]
creates an application bundle, read the man page for further details


regards

Stefan

Offline

 

#3 2008-04-01 12:20:03 pm

ChristInBen
Member
Registered: 2008-03-27
Posts: 66

Re: Compiling Applescript from command line....

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?

Offline

 

#4 2008-04-01 12:27:44 pm

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11641
Website

Re: Compiling Applescript from command line....

ChristInBen wrote:

can I just say osacompile instead of the /usr/bin


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

ChristInBen wrote:

… 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?


I don't know, just try it smile


regards

Stefan

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)