Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-10-2013, 12:15 PM   #1
tmrosado
Prospect
 
Join Date: Feb 2013
Posts: 1
Lightbulb script to com each folder in the current directory to a separate zip file

Hi everybody!

I have many folders that need to be compressed individually.

Currently I'm this very cool terminal command to compresses each folder in the current directory to a separate zip file:

find . -type d -d 1 -exec zip -r {} {} \;

The problem is that each time I need to use it, I have to call Terminal, go to the current folder, paste this command, and manually delete the folders that where compressed.

Is there any way to integrate all these steps into a Script to run in Automator?
That would save a few hundred clicks

thanks!!!
tmrosado is offline   Reply With Quote
Old 02-10-2013, 05:00 PM   #2
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,940
Yes - see: https://www.google.com/search?q=automator+tutorial
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Reply

Tags
compression, folders, terminal, zip

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.