How to SET the com.apple.quarantine

Joined
Nov 7, 2008
Messages
26
Reaction score
0
Points
1
I know how to remove the quarantine attribute with xattr -d, but how would I set it on a file? I use iTerm2, and would like to set it on Terminal.app, to prevent launching it by mistake from spotlight, and other programs launching it.

I've tried googling for an answer, but get flooded with tips on how to remove the attribute, so I'm hoping someone here knows.
 
Joined
Feb 25, 2008
Messages
2
Reaction score
0
Points
1
This will do it:
xattr -w com.apple.quarantine "0000;4b3a40d0;Safari;|com.apple.Safari" PATH_TO_FILE
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top