Unquarantine & OpenQuick Action
If you’re tired of digging through System Settings → Privacy & Security → Open Anyway every time macOS blocks an unsigned app/file, this recreates a faster workflow using a Finder Quick Action.
This version includes:
com.apple.quarantine attributeWhen you right-click a file in Finder and run this Quick Action:
~/Library/Logs/UnquarantineAndOpen.log
Configure the workflow:
files or foldersFinderSearch for:
Run Shell Script
Drag it into the workflow.
Set:
/bin/zshas argumentsPaste this script:
LOGFILE="$HOME/Library/Logs/UnquarantineAndOpen.log"
for file in "$@"
do
filename=$(basename "$file")
timestamp=$(date "+%Y-%m-%d %H:%M:%S")
response=$(osascript <<EOF
display dialog "Unquarantine and open:\n\n$filename\n\nThis bypasses macOS security checks." buttons {"Cancel", "Proceed"} default button "Proceed" with icon caution
if button returned of result is "Proceed" then
return "yes"
else
return "no"
end if
EOF
)
if [[ "$response" == "yes" ]]; then
if xattr -dr com.apple.quarantine "$file"; then
echo "$timestamp | UNQUARANTINED | $file" >> "$LOGFILE"
if open "$file"; then
echo "$timestamp | OPENED | $file" >> "$LOGFILE"
else
echo "$timestamp | OPEN FAILED | $file" >> "$LOGFILE"
fi
else
echo "$timestamp | XATTR FAILED | $file" >> "$LOGFILE"
fi
else
echo "$timestamp | CANCELLED | $file" >> "$LOGFILE"
fi
doneSave it with a name like:
Unquarantine & Open
This makes it appear in Finder when you:
For faster access:
Now you can trigger it without opening the context menu.
+ buttonFinderUnquarantine & OpenExample:
Control + Option + Command + O
⚠️ The menu title must match your Quick Action name exactly. (ie, Unquarantine & Open)
Your logs are stored here:
~/Library/Logs/UnquarantineAndOpen.log
View them with:
cat ~/Library/Logs/UnquarantineAndOpen.logOr watch them live:
tail -f ~/Library/Logs/UnquarantineAndOpen.logAutomator stores Quick Actions here:
~/Library/Services/
You can open that folder quickly in Finder with:
Command + Shift + G
Then paste:
~/Library/Services
This bypasses macOS Gatekeeper protections.
Only use it for files/apps you trust.
Do not use this on random downloads from sketchy corners of the internet. That’s how people end up starring in their own cybersecurity documentary.