Mount ZIP files in OSX Finder
Post date: Dec 5, 2017 9:10:03 AM
- Install Homebrew
- Install
fuse-zip
- Use Automator to create an app with a “Run shell script” action
- Set “Pass input as argument” and enter this script (remove
-r
for read-write)for f in "$@" do /usr/local/bin/fuse-zip -r -o local "$f" /tmp/fuse-zip-$RANDOM done
- Save the app with a name of your choice (eg ZipMount), close automator
- Browse to a Zip file, open Inspector, and associate it with ZipMount
- Click “Open all zip files with this”
Update: this more sophisticated version handles more archive types (needs archivemount
)
for f in "$@"
do
dir=/tmp/archivemount-$RANDOM
mkdir -p $dir
if [[ $f == *.zip ]]; then
/usr/local/bin/fuse-zip "$f" $dir -r -o local
else
/usr/local/bin/archivemount "$f" $dir -o readonly,local,volname="$f",direct_io
fi
open $dir
done