Re: Automate zip archives
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