What's wrong with this call to zip?
What's wrong with this call to zip?
- Subject: What's wrong with this call to zip?
- From: KOENIG Yvan <email@hidden>
- Date: Tue, 26 Feb 2008 20:36:49 +0100
Hello
I'm trying to write a script packing each of my iWork's documents in
an archive file to get rid of the fact that recovering tools are
unable to resurect the packages created by these applications.
I first tried the gzip tool but it sent a clear message telling that
it can't apply on a folder (remember, a package is a disguised folder).
So, I moved to zip.
Alas, this time, the returned message is cryptic (at least for me).
The script is
set fichier to "AluIce250_4_vide:autour
d'iWork'08:documents_Pages:Garamond vs Garamond - copie.pages"
do shell script "zip " & quoted form of POSIX path of fichier
and I got:
tell current application
do shell script "zip '/Volumes/AluIce250_4_vide/autour d'\
\''iWork'\\''08/documents_Pages/Garamond vs Garamond - copie.pages'"
" zip warning: missing end signature--probably not a zip file
(did you
zip warning: remember to use binary mode when you transferred it?)
zip error: Zip file structure invalid (/Volumes/AluIce250_4_vide/
autour d'iWork'08/documents_Pages/Garamond vs Garamond - copie.pages)"
I don't understand why zip tell me that the file is not a zip one? I
knows that it is not, I just wish that it create one from the given
package.
Yvan KOENIG
_______________________________________________
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