Created
July 4, 2021 05:58
-
-
Save ThatsJustCheesy/6935af6053adbe66980abff6cfb76e99 to your computer and use it in GitHub Desktop.
macOS script: Open downloaded file(s) bypassing gatekeeper dialog
This file contains hidden or 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/bash | |
# Either use from the command line, or put in an Automator workflow | |
# that takes files as input and save it as a Quick Action. | |
# For bonus points, assign a nice keyboard shortcut. | |
for file | |
do | |
xattr -r -d com.apple.quarantine "$file" | |
open "$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment