Re: What's wrong with this call to zip?
Re: What's wrong with this call to zip?
- Subject: Re: What's wrong with this call to zip?
- From: Philip Aker <email@hidden>
- Date: Tue, 26 Feb 2008 12:07:30 -0800
On 08-02-26, at 11:36, KOENIG Yvan wrote:
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
Try this:
set ptd to path to desktop as text set source to quoted form of POSIX path of (ptd & "some") -- a folder set dest to quoted form of POSIX path of (ptd & "some.zip") do shell script "ditto -ck " & source & " " & dest
|
_______________________________________________
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