Re: scripting BOMArchiveHelper possible ?
Re: scripting BOMArchiveHelper possible ?
- Subject: Re: scripting BOMArchiveHelper possible ?
- From: Philip Aker <email@hidden>
- Date: Wed, 11 Oct 2006 11:57:36 -0700
On 2006-10-11, at 05:49:59, Axel Luttgens wrote:
On 5/10/06 22:51, Trudel, Gaetan wrote:
But I couldn't manage to force a compression format other than "cpgz".
(someone? ;-) )
An OSAX or script addition ?
There are so many options already available through commands (and
thus through "do shell script") that an addition might just prove
redundant.
For example, you could have a look at the man pages for "ditto",
"gzip" and "tar" and pick up the one best suited for your needs.
Moreover, under 10.4+, those commands handle (almost perfectly,
unless your files have ACLs) the metadata associated to files and
folders, such as Finder comments or labels.
To zip a file just like the Finder's 'Create Archive of "some
folder"' use:
ditto -ck /path/to/folder /path/to/output.zip
ditto preserves resource forks as a default.
To unzip tell the Finder to 'select someAlias' and then 'open
selection'. Or use 'unzip'.
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden