1

I used the following Terminal command to Quarantine a test app I have been making which worked fine

xattr -d com.apple.quarantine /Applications/Untitled.app

Is there a way to bring it back to its original state ( reverse the quarantine ) so when it runs I get the usual message.

enter image description here

0

1 Answer 1

1

This is a duplicate of this question: How to set (restore) the com.apple.quarantine attribute?

This is the summary of the top answer (currently):

You can copy an existing com.apple.quarantine attribute of an arbitrary file to a proxy file and then apply it to arbitrary other files. If you open certain file types (e.g. .txt files) the quarantine attribute will be ignored though.

Example:

xattr -p com.apple.quarantine /Users/user/dnscrypt-osxclient-1.0.12.dmg quarantine.attr

xattr -w com.apple.quarantine "cat quarantine.attr" test.command

This will apply the data gathered from the .dmg to the .command file - including download date and download app of the original dmg file. The original download date/app of the .command won't be restored though.

Source: Using xattr to set the Mac OSX quarantine property

For more details, go check out the original answer here (which I have quoted)

Not the answer you're looking for? Browse other questions tagged .