Re: Zip Multiple File Headaches
Re: Zip Multiple File Headaches
- Subject: Re: Zip Multiple File Headaches
- From: "Gary (Lists)" <email@hidden>
- Date: Thu, 16 Aug 2007 18:21:06 -0400
"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.
Firstly, I think it's a 'good' thing that an unzip doesn't go scattering
files everywhere. It should be up to the user (human) to determine the
actual (real) content of the unzipped file and then let any other mechanism
handle placing those items (an installer...see below).
Perhaps you'll find, buried in some arcane 'man' pages, a way to have the
file remember the placement of the items in it. However, if that doesn't
pan out, then why not just do it yourself? That is: Why not write your
script to do it?
Possible 'Psuecnario':
Utilize a "manifest" system, where your script first handles gathering the
information which needs to be restored (location of each file).
Record that information in a file of your choice (myname.info), in a form
that suits you (return-delimited).
This gets 'zipped' up with all the rest.
Unzip, get a folder.
Read the '.info' file and then move the files to their location, trapping
for all the sundry errors along the way (that location doesn't exist, the
location is named differently, permissions are wrong, etc.)
Anyway, the metaphor of "installer" or "package" or "bundle" is not new.
Just use that metaphor to write your script more fully...if you can't find a
unix tool that does all of that (error handling, etc.) for you.
--
Gary
_______________________________________________
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