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: Wed, 27 Feb 2008 15:21:27 +0100
Le 27 févr. 2008 à 14:14, Axel Luttgens a écrit :
cd ~/Desktop
zip -r test.rtfd.zip test.rtfd
Thanks
I got a surprising behaviour.
As I don't like to put an implicit linebreak in a shell script, I
first tried to use:
do shell script "cd ~/Desktop" & return &" zip -r test.rtfd.zip
test.rtfd"
which failed.
So, I made a new test using:
do shell script "cd ~/Desktop
zip -r test.rtfd.zip test.rtfd"
and it worked
But I really don't understand why it does in this case and why it
doesn't when the operands are full pathnames.
As I am unaware of terminal details, I am unable to edit
do shell script "cd ~/Desktop
zip -r test.rtfd.zip test.rtfd"
to make it work with my own folder, which may be
set monDossier to (path to documents folder) as unicode text &
"dossier1:dossier2:"
or
set monDossier to (choose folder) as unicode text
If I am boring, don't be afraid, you may tell me that I am ;-)
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