Re: Automating with Applescript!
Re: Automating with Applescript!
- Subject: Re: Automating with Applescript!
- From: Cerciello <email@hidden>
- Date: Wed, 28 Oct 2009 18:59:03 +0100
Yes I tryed and got the some error. I think the token can be " rm -rf
" as automator marked like a kind of wrong spelling but I can' t see
what wrong with them as they work in terminal.
Try this, instead of:
Tell app "Terminal"
try:
do shell script "cd " & this_path & "find . -exec unzip -o {} \; & rm -
rf __MACOSX;"
It gave me the 'unknown token' warning as well, which I'm not sure
about. Anyone else have any ideas?
- Jamie
On 2009-10-27, at 6:54 PM, Cerciello <email@hidden> wrote:
Hi everyone,
I like to unzip a bunch of ziped file but doesn' t work!
Basically I created a service using the " Run Applescript "
action and typed this:
on run {input, parameters}
tell application "Finder"
set this_path to the quoted form of the POSIX path of
(insertion location as alias)
end tell
tell application "Terminal"
activate
do script "cd " & this_path & find . -exec unzip -o {} \; & rm -
rf __MACOSX;
end tell
return input
end run
error: Expected end of line, etc. but found unknown token.
Any help would be very appreciated or if would be a simpler way
to do this, very welcome.
Thanks in advance
gC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden