Skip to content

Instantly share code, notes, and snippets.

@oelna
oelna / create_tar.workflow
Last active July 29, 2016 22:04
An Automator service that creates a .tar from files and folders selected in the Finder
#thanks to Gordon Davisson on SO: http://stackoverflow.com/a/35146562/3625228
files=()
for f in "$@"
do
path=`dirname "$f"`
file=`basename "$f"`
files+=(-C "$path" "$file")