Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8398623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:05:52+00:00 2026-06-09T21:05:52+00:00

Ever since OS X 10.7.3, my text editor is setting the quarantine bit on

  • 0

Ever since OS X 10.7.3, my text editor is setting the “quarantine” bit on any file it touches.

My text editor is designed for working with shell scripts, and if the quarantine bit is set then a shell script cannot be executed from the command line, until you double click it in Finder and go through a “This application was downloaded from the internet” alert (or remove the quarantine bit with xattr).

For example, I just created a “hello world” script in my app, it has been 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 remove the quarantine bit, the script works:

$ xattr -d com.apple.quarantine foo
$ ./foo
hello world

According to some forum posts, TextEdit also sets the quarantine bit on any shell script it creates.

I’m using a simple NSDocument subclass to create the file:

- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
  return [self.textStorage.string dataUsingEncoding:self.stringEncoding];
}

How can I remove the quarantine bit from files created in my app? Other text editors, such a TextWrangler, do not set the quarantine bit.

UPDATE

A little more info, this only occurs when creating a “script application” file, which is anything from perl scripts to html.

And it only occurs when my app is sandboxed. Disabling sandboxing fixes the problem, but that’s not a long term solution.

I’ve filed a bug with Radar, it looks like there might be nothing to do but wait/hope that avenue gets it fixed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:05:53+00:00Added an answer on June 9, 2026 at 9:05 pm

    As far as I can tell, this bug has been fixed in OS X 10.8 (Mountain Lion).

    Seems like I will have to make 10.8 the minimum OS version for my app. Not really a big deal for me… but hopefully Apple fixes it in a bugfix to 10.7 (the system requirements for 10.8 are quite a bit higher than 10.7, I know people who can’t upgrade).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ever since deleting the original settings.settings file I have had endless problems getting the
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
Ever since ereg became depreciated, I began to use preg_match. Unfortunately in my code,
Ever since I discovered sockets, I've been using the nonblocking variants, since I didn't
Ever since I upgraded to Delphi 2009, I am having terrible experience with TFrame
Ever since I gained experience at a software house I have found it difficult
Ever since I installed emacs on a new machine I have seen an ugly
Ever since British Summer Time ended in the UK last week my application has
Ever since I asked how to parse html with regex and got bashed a
Ever since I started programming this has been something I have been curious about.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.