• 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: Automating with Applescript!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automating with Applescript!


  • Subject: Re: Automating with Applescript!
  • From: Cerciello <email@hidden>
  • Date: Wed, 28 Oct 2009 18:26:06 +0100

Thanx Jamie but unfortunatelly doesn't work. What I found really odd is that if I run the commands in terminal:

find . -exec unzip -o {} \; & rm -rf __MACOSX;

It work just as expected. I don't understand what are the " unknown token " .

find . -exec unzip -o {} \; & rm -rf __MACOSX;


On Oct 28, 2009, at 4:26 PM, Jamie Lee wrote:

Sure,

After the second &:

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


- Jamie

On 2009-10-28, at 10:06 AM, Cerciello wrote:

Hello Jamie,

thanx allot for your reply. Can you please be more specific?

Thanks in advance
gC

On Oct 28, 2009, at 12:08 AM, Jamie Lee wrote:

Hi,
You left out a ' on one of the last lines, the terminal script.



- 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



_______________________________________________ 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
References: 
 >Automating with Applescript! (From: Cerciello <email@hidden>)

  • Prev by Date: Re: Automator actions in C?
  • Next by Date: Re: Automating with Applescript!
  • Previous by thread: Automating with Applescript!
  • Next by thread: Re: Automating with Applescript!
  • Index(es):
    • Date
    • Thread