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: 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