on 2012-05-01 7:50 Dinse, Gregg (NIH/NIEHS) [E] wrote
The above command allowed my script to run again. Of course, if I use TextEdit to make any additional changes to the script, I get the error message again and have to run the xattr command again, so the "fix" is not permanent.
as expected
I spent a few minutes googling. It appears that the quarantine attribute, which I had never heard of, is new in 10.7.3. Also, it appears that TextEdit "causes" this problem, but some other text editors such as TextWrangler do not.
perhaps it is a "security" feature to avoid exploits automating TextEdit (which an exploit can depend on being installed) to create scripts; i would use a different text editor, as TextEdit is not really ideal for this purpose anyway
Perhaps I will have to switch to a different editor, at least for scripts. Alternatively, do you know of a way to tell TextEdit not to mess with the quarantine attribute?
not directly; you could add a folder action to the folder with your script(s) which removes the attribute whenever a file is modified — would be clunky, but if you have to use TextEdit and you need to modify this script frequently, it might save you time
_______________________________________________ MacOSX-talk mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-talk
