Re: Tar/gzip is messing up icons
Re: Tar/gzip is messing up icons
- Subject: Re: Tar/gzip is messing up icons
- From: John M <email@hidden>
- Date: Fri, 14 Jan 2005 08:45:16 +0000
On 13 Jan 2005, at 19:36, Jan-Bultereys wrote:
Is there an option in the TAR/GZIP command to keep the icons/resources?
Or does anyone has a better option to compress files/directories via
the terminal window in os X?
any ideas are much appreciated,
jan
I don't know if this will help with your problem, but what about ditto?
This routine makes Zip file copies in the same location as the
original.
---
set aFile to (choose file)
set theFile to fileZipper(aFile)
on fileZipper(myFile)
set zipFile to (myFile & ".zip") as text
do shell script ¬
"/usr/bin/ditto -c -k -rsrc --keepParent " & ¬
(quoted form of (POSIX path of myFile)) & ¬
" " & (quoted form of (POSIX path of zipFile))
return zipFile
end fileZipper
---
It needs some more checking/error correcting (ie it does
odd/undesirable things with packages)
Best
John Maisey
_______________________________________________
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