Macworld Forums: "Create multiple individual zip files" (MW 8/1/08) -- & output them to a 'subfolder'? - Macworld Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

"Create multiple individual zip files" (MW 8/1/08) -- & output them to a 'subfolder'?

#1 User is offline   SteveRay Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 63
  • Joined: 17-October 07

Posted 08 September 2008 - 10:38 PM

The article "Create multiple individual zip files" (MW 8/1/08) includes an Automator workflow that compresses every file in the current working folder to its own individual zipfile.

The script is:

for f in "$@"
do
zip -j "$f.zip" "$f"
done

That puts all of the zipfiles in the same folder as the originals.

How can that script be modified to instead direct the zipfiles to a subfolder of the folder which contains the files that are being zipped?

Thanks.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users