• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's wrong with this call to zip?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@




 _______________________________________________
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

  • Follow-Ups:
    • Re: What's wrong with this call to zip?
      • From: KOENIG Yvan <email@hidden>
    • Re: What's wrong with this call to zip?
      • From: KOENIG Yvan <email@hidden>
References: 
 >What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Indesign --> CS3 changed behaviour
  • Next by Date: Re: Indesign --> CS3 changed behaviour
  • Previous by thread: What's wrong with this call to zip?
  • Next by thread: Re: What's wrong with this call to zip?
  • Index(es):
    • Date
    • Thread