• 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: KOENIG Yvan <email@hidden>
  • Date: Tue, 26 Feb 2008 21:55:32 +0100


Le 26 févr. 2008 à 21:07, Philip Aker a écrit :
…

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

I will use this one because it allow me to create the dest file on the fly.


--
set nom to "les_fonctions_Numbers+.rtfd"
set nomZip to nom & ".zip"
set ptd to path to desktop as text
set source to quoted form of POSIX path of (ptd & nom & ":") -- a folder
tell application "Finder"
try
delete file (ptd & nomZip)
end try
make new file at folder ptd with properties {name:nomZip, kind:"ZIP archive"}
end tell
delay 1
set dest to quoted form of POSIX path of (ptd & nomZip)
--do shell script "zip -r " & dest & " " & source


do shell script "ditto -ck " & source & " " & dest
--

works

The one using zip doesn't (at least, I am unable to make it work).

This time I started from a .rtfd file which is more common ;-)

Thanks to all of you.

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
References: 
 >What's wrong with this call to zip? (From: KOENIG Yvan <email@hidden>)
 >Re: What's wrong with this call to zip? (From: Philip Aker <email@hidden>)

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