• 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: Axel Luttgens <email@hidden>
  • Date: Thu, 29 Oct 2009 13:09:39 +0100

Le 29 oct. 2009 à 12:46, Cerciello a écrit :

[...]

Any suggestion on how to combine this 2 lines in one "do shell scrip" command?

Since the ";" expected by the find command is now correctly escaped, just append your third shell command as usual:


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


The idea to create this service is for unzipping large files downloaded from the net which often are splitted in hundreds of small zip files. Usually I will run the service on a folder on my desktop.

Are all those zip files a the top-level of the enclosing folder? In which case you could perhaps consider an even simpler way, such as:

do shell script ("cd " & this_path & "; unzip -o *.zip; rm -rf __MACOSX")

HTH,
Axel _______________________________________________
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
  • Follow-Ups:
    • Re: Unzip multiple items Applescript-terminal syntax help!
      • From: Cerciello <email@hidden>
References: 
 >Unzip multiple items Applescript-terminal syntax help! (From: Cerciello <email@hidden>)
 >Re: Unzip multiple items Applescript-terminal syntax help! (From: Axel Luttgens <email@hidden>)
 >Re: 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: Re: Unzip multiple items Applescript-terminal syntax help!
  • 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