• 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: Unzip multiple items Applescript-terminal syntax help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Unzip multiple items Applescript-terminal syntax help!
      • From: Axel Luttgens <email@hidden>
References: 
 >Unzip multiple items Applescript-terminal syntax help! (From: Cerciello <email@hidden>)
 >Re: Unzip multiple items Applescript-terminal syntax help! (From: Axel Luttgens <email@hidden>)
 >Re: Unzip multiple items Applescript-terminal syntax help! (From: Cerciello <email@hidden>)
 >Re: Unzip multiple items Applescript-terminal syntax help! (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Previous by thread: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by thread: Re: Unzip multiple items Applescript-terminal syntax help!
  • Index(es):
    • Date
    • Thread