Fwd: Unzip multiple items Applescript-terminal syntax help!
Fwd: Unzip multiple items Applescript-terminal syntax help!
- Subject: Fwd: Unzip multiple items Applescript-terminal syntax help!
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 29 Oct 2009 09:45:24 -0400
Sorry, reply went only to cerciello the first time.
---------- Forwarded message ----------
From: Mark J. Reed <email@hidden>
Date: Thu, Oct 29, 2009 at 9:44 AM
Subject: Re: Unzip multiple items Applescript-terminal syntax help!
To: Cerciello <email@hidden>
On Thu, Oct 29, 2009 at 8:56 AM, Cerciello <email@hidden> wrote:
> do shell script ("cd " & this_path & "; find . -exec unzip -o {} \\;
That find command will run "unzip" on every single file and folder
under this_path. You might want to restrict it to just the things
that are actually zip files, maybe with something like this:
do shell script "cd " & this_path & "&& find . -name '*.zip' -exec
unzip -o {} \; "
(the && is safer than the ";" there - it means it won't do the find if
the cd fails for some reason, like a typo in this_path...)
--
Mark J. Reed <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