Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'this will make Archive.zip' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
this will make Archive.zip
Authored by: davehole on Sep 07, '05 06:41:05PM
Can be used on one or more selected files. If more than one file is selected it creates an "Archive.zip" folder Like previous hint, make an automator "run shell script" action with shell set to "/bin/sh" and pass input as "arguments".


if [ $# == 1 ]; then
        zip -r -j "$1.zip" $1 -x \*.DS_Store
else
        x=`dirname $1`
        zip -r -j ${x}/Archive.zip $* -x \*.DS_Store
fi


[ Reply to This | # ]