Skip to content

Instantly share code, notes, and snippets.

@ThatsJustCheesy
Created July 4, 2021 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThatsJustCheesy/6935af6053adbe66980abff6cfb76e99 to your computer and use it in GitHub Desktop.
Save ThatsJustCheesy/6935af6053adbe66980abff6cfb76e99 to your computer and use it in GitHub Desktop.
macOS script: Open downloaded file(s) bypassing gatekeeper dialog
#!/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