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: 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