• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: scripting BOMArchiveHelper possible ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >scripting BOMArchiveHelper possible ? (From: "Trudel, Gaetan" <email@hidden>)
 >Re: scripting BOMArchiveHelper possible ? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: App and droplet
  • Next by Date: Re: App and droplet
  • Previous by thread: Re: scripting BOMArchiveHelper possible ?
  • Next by thread: RE: scripting BOMArchiveHelper possible ?
  • Index(es):
    • Date
    • Thread