Re: Tar/gzip is messing up icons
Re: Tar/gzip is messing up icons
- Subject: Re: Tar/gzip is messing up icons
- From: "Adam K. Wuellner" <email@hidden>
- Date: Thu, 13 Jan 2005 09:47:09 -0600
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