Re: Unzip multiple items Applescript-terminal syntax help!
Re: Unzip multiple items Applescript-terminal syntax help!
- Subject: Re: Unzip multiple items Applescript-terminal syntax help!
- From: Axel Luttgens <email@hidden>
- Date: Fri, 30 Oct 2009 15:58:01 +0100
Le 29 oct. 2009 à 20:34, Cerciello a écrit :
I also changed "rm" with "mv" in the last line just to be sure that
I don't loose the source .zip files if somthing go wrong:
do shell script "cd " & this_path & "&& find . -name '*.zip' -exec
unzip -o {} \\;; mv __MACOSX *.zip /Users/gc/.Trash/"
Hmmm... ;-)
This is morally equivalent to the above:
cd '/non/existent' && echo 'finding-unzipping'; echo 'moving'
But I guess that this one would be closer to the wanted behavior:
cd '/non/existent' || exit 1; echo 'finding-unzipping'; echo 'moving'
as well as this one:
cd '/non/existent' && ( echo 'finding-unzipping'; echo 'moving'; )
Also, it could be a good idea to apply "quoted form of" to this_path
while building the string to be passed to "do shell script".
HTH,
Axel _______________________________________________
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