RE: Tar/gzip is messing up icons
RE: Tar/gzip is messing up icons
- Subject: RE: Tar/gzip is messing up icons
- From: "Jan-Bultereys" <email@hidden>
- Date: Thu, 13 Jan 2005 17:23:27 +0100
- Thread-topic: Tar/gzip is messing up icons
thanks adam for sharing this idea,
but as far as I know pc's don't support this .dmg
by default.
My intention is to send these files to customer
working both on PC and Mac.
kind regards,jan
> ----------
> From: Adam K. Wuellner
> Sent: Thursday, January 13, 2005 16:47 PM
> To: Jan-Bultereys
> Cc: email@hidden
> Subject: Re: Tar/gzip is messing up icons
>
> On Jan 13, 2005, at 8:15 AM, Jan-Bultereys wrote:
>
> > hi,
>
> Hi Jan,
>
> > This is what I use to tar/compress files via a program made in
> > applescript.
> >
> > [SNIP]
> > My problem is when I uncompress the files/directories.....
> > illustrator/photoshop/quarkfiles
> > are being recognized as "unix executable files" or just document with
> > a blanc icon....
> >
> > Is there an option in the TAR/GZIP command to keep the icons/resources?
>
> `tar` is not resource-fork aware. Advance literature about the next
> release of OS X (v10.4 Tiger) promises that all Unix commands have been
> improved in this regard.
>
> > Or does anyone has a better option to compress files/directories via
> > the terminal window in os X?
>
> In the meantime, I suggest looking at the `hdiutil` utility. It can
> create compressed disc images (without stripping important resources
> off your files), among other things.
>
> Here is an example:
> I have a folder (~/work/Parcelbase/current/) that I want to "zip up"
> and send to some colleagues. `du` reports that the size of the folder
> is 1008 KB.
>
> I run this command (one line):
> hdiutil create -srcdir ~/work/Parcelbase/current
> ~/work/Parcelbase/pb-latest.dmg
>
> The product is a disk image at ~/work/Parcelbase/pb-latest.dmg,
> weighing in at 452 KB.
>
> By default, hdiutil creates images in this format: UDZO - UDIF
> zlib-compressed image. There are options available to control the
> compression level, or to select another format.
>
> Attaching the image is just a matter of double-clicking its icon in
> Finder.
>
> HTH,
> Adam
>
>
>
_______________________________________________
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