Created
April 13, 2011 18:53
-
-
Save Zettt/918133 to your computer and use it in GitHub Desktop.
Hazel script that will open .dmg files in the background without any interaction required. (It auto-accepts any confirmation dialog.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
file="$1" | |
extension=${file##*.} | |
if [[ $extension == "dmg" ]]; then | |
echo "yes" | hdiutil attach "$1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment