• 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: Steve Thompson <email@hidden>
  • Date: Thu, 29 Oct 2009 01:58:05 +0000


On 28 Oct 2009, at 21:47pm, Cerciello wrote:

do script "cd " & this_path & find . -exec unzip -o {} \; & rm -rf __MACOSX;

This line is incorrectly quoted and escaped. \ is the escape character so you need to escape it - what you probably needed was

tell application "Terminal" to do script ("cd " & this_path & ";find . -exec unzip -o {} \\; & rm -rf __MACOSX;")

But what would work better is 

do shell script ("cd " & this_path & "; find . -exec unzip -o {} \\; & rm -rf __MACOSX;")


Which doesn't need to launch the Terminal Application

Steve
 _______________________________________________
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

References: 
 >Unzip multiple items Applescript-terminal syntax help! (From: Cerciello <email@hidden>)

  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: Trouble with dock preferences of System Events
  • 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