Zipping an application package by script

Mark Talluto userev at canelasoftware.com
Wed Sep 10 14:28:54 EDT 2008


On Sep 10, 2008, at 10:30 AM, Stephen Barncard wrote:

> Thanks Mark, but my current need is to <compress> a folder and its  
> contents by script control.
>
> However this little snippet is going into my code scrapbook for sure!
>
> sqb


Hi Stephen,

The Terminal is our friend.  All you have to do is man the zip command  
in Terminal.  It will provide you a list of flags that will allow you  
to do what you want.  It would probably take you no more than 20  
minutes to determine which flags you need.  My quick search on the  
topic brought up:  <http://forums.macosxhints.com/archive/index.php/t-53258.html 
 >
The man for zip on OS X can be read here: <http://www.manpagez.com/man/1/zip/ 
 >

I bet you could do it all with the lowercase r flag.

I do not favor the use of Automator for this solution.  You can do it  
very cleanly with shell and it will be a lot faster than Automator as  
well.  If this is for a commercial app, Automator will be noisy, may  
cause things to flash on the screen, may break down the road when  
Apple decides that its fling with Automator is over, and break between  
OS updates.


Mark Talluto
http://www.canelasoftware.com







More information about the use-livecode mailing list