• 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: Automate zip archives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automate zip archives


  • Subject: Re: Automate zip archives
  • From: Nigel Garvey <email@hidden>
  • Date: Wed, 8 Nov 2000 18:21:32 +0000

Peter Mathiessen wrote on Wed, 08 Nov 2000 16:12:44 +0100:

>Hi all,
>
>Is there anyone out there who already have done a script that take a bunch
>of files and zip each of them into different archives.
>
>I have more than 2000 files that need to be made into zip archives, each of
>them in their own archive. I have tried somewhat with ZipIt but haven4t
>figured it out yet.
>
>Anyone that knows how or get a idea of some other application, it have be PC
>compatible.

The basic sequence for ZipIt in this case would be, for each file that
you want to archive, to construct a name for the archive based on the
name of the file (shortened if necessary) and a ".zip" suffix, and then:

tell application "ZipIt"
make new window
add file "myPath:myFileName" -- add the file to the archive
compress file "aPath:myArchiveName" -- save the archive as...
close the front window
end tell

'add' also takes a list parameter if you want to put several files at
once into the archive.

NG


  • Follow-Ups:
    • Re: Automate zip archives
      • From: Peter Mathiessen <email@hidden>
  • Prev by Date: Re: Scripter (The Program)
  • Next by Date: I know this is a reach...
  • Previous by thread: Re: Unsing Function Keys with AppleScripts
  • Next by thread: Re: Automate zip archives
  • Index(es):
    • Date
    • Thread