• 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
command line ZIPping UNZIPping syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command line ZIPping UNZIPping syntax


  • Subject: command line ZIPping UNZIPping syntax
  • From: Jake Pietrykowski <email@hidden>
  • Date: Fri, 04 Feb 2005 10:15:15 -0600

Hi,

As part of a script I want to ZIP and UNZIP files and directories. I'm
currently using the ditto command to create the archives, and the unzip
command to unzip, each preceded by do shell script.

forgive the lack of technical jargon below ;-)

I know there are endless possibilities to working with archives, but what I
need is a way to KEEP all of the Finder info, custom icons, labels, etc.
Permissions are not essential to keep. I need to create an archive like
such, and then in turn, be able to also extract the archive.

--current ZIP script
do shell script "ditto -c -k -rsrc --keepParent /path/to/files
/path/to/archive.zip"

--current UNZIP script
do shell script "unzip /path/to/archive.zip -d /path/to/desktop"

Using the 'unzip' command, also renders an extra __MACOSX folder.

Thanks for any insight.

Regards,
Jake


 _______________________________________________
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

  • Follow-Ups:
    • Re: command line ZIPping UNZIPping syntax
      • From: Courtney Schwartz <email@hidden>
  • Prev by Date: Merge Channels in PS CS
  • Next by Date: Re: Building applescript records with lists, accessing applescript records with strings
  • Previous by thread: Re: Merge Channels in PS CS
  • Next by thread: Re: command line ZIPping UNZIPping syntax
  • Index(es):
    • Date
    • Thread