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: "Mark J. Reed" <email@hidden>
- Date: Fri, 30 Oct 2009 11:14:37 -0400
Iirc this_path was set to quoted form already.
On Friday, October 30, 2009, Axel Luttgens <email@hidden> wrote:
> 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'
good point. Oops.
> 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
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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