• 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: Tar/gzip is messing up icons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: X, Classic, or 9?
  • Next by Date: RE: Tar/gzip is messing up icons
  • Previous by thread: Re: Tar/gzip is messing up icons
  • Next by thread: RE: Tar/gzip is messing up icons
  • Index(es):
    • Date
    • Thread