Re: Zip Multiple File Headaches
Re: Zip Multiple File Headaches
- Subject: Re: Zip Multiple File Headaches
- From: Doug McNutt <email@hidden>
- Date: Thu, 16 Aug 2007 17:19:24 -0600
At 18:21 -0400 8/16/07, Gary (Lists) wrote:
>"Rick Dwyer" wrote:
>
>> For my solution, the zip file is uploaded to an ftp
>> server and in must be named myname.zip. When it's unzipped
>> automatically, it must unzip to the three files enclosed.
> > So unfortunately, I don't think those will work.
>
>Perhaps you'll find, buried in some arcane 'man' pages, a way to have the
>file remember the placement of the items in it.
UNIX tar might, in fact, be what you want. But it will pretty much demand that the user who downloads the compressed archive be running a UNIX-like system. Forget about WinZip.
Tar is a "tape archive" that was used long ago to prepare a file for magnetic tape that contains a list of files complete with their hierarchy as they exist within a directory structure. If you download source code for open source contributions that you need to compile and link you'll have to learn about tar.
Tar does no compression but is is easily linked up with gzip or zip to compress the single file that is the tape archive.
When the file is unzipped and untarred at the receiving end the original file names and subdirectories are retained. The tar and zip tools are easily linked with each other into a single line but the command line switches take considerable study. But that would be required only twice. Once for the compression and another for the uncompress script.
It just might be that new versions of Stuffit Expander will unpack tarred and zipped files. Is the new version of Stuffit Deluxe scriptable? Mine will create Windows compatible zipped files but it has no dictionary.
Your requirement for a *.zip extension seems to imply Windoze for the destination. If that's the case perhaps tar will be useful to someone else.
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden