Starting with OS X 10.7.3, my text editor sets the quarantine bit in any file that it affects.
My text editor is designed to work with shell scripts, and if the quarantine bit is set, the shell script cannot be executed from the command line until you double-click it in Finder and go through "This application has been downloaded from the Internet" (or delete the quarantine bit using xattr).
For example, I just created a "hello world" script in my application, it was quarantined and cannot be executed:
$ xattr -l foo
com.apple.quarantine: 0006;4f51dd2f;Dux;
$ chmod +x foo
$ ./foo
-bash: ./foo: Operation not permitted
If I delete the quarantine bit, the script works:
$ xattr -d com.apple.quarantine foo
$ ./foo
hello world
, TextEdit script, .
NSDocument :
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
return [self.textStorage.string dataUsingEncoding:self.stringEncoding];
}
, ? , TextWrangler, .
UPDATE
, script, : perl- html.
, . , .
Radar, , , /, .