Harmless downloaded files can't be opened

I've recently started having problems opening plain text files which have been downloaded or saved from email attachments in Sequoia. The specific files are text files which contain data used in lighting calculations and have the extensions IES or LDT. They are simple text files, not apps or even PDFs, so I don't understand why MacOS has suddenly started giving them the quarantine attribute.


When I try to open them I get a message "fileame" Not Opened, Apple could not verify "filename" is free from malware that may harm your Mac or Compromise your privacy. The options are Done or Move To Bin. I've tried setting these files to open with Preview, BBEdit etc, but I get this message each time I double click on them. I can however use the File-Open command in these Apps to open the files, but that's very inconvenient.


I can manually remove the restriction from these files using the xattr command, but that's tedious and I work with these files all the time. Does anyone know how to stop certain file types being quarantined in the first place?

MacBook Pro 16″, macOS 15.4

Posted on May 20, 2025 2:49 AM

Reply
19 replies

May 22, 2025 10:08 PM in response to etresoft

etresoft wrote:

If you have an app that can open them like BBEdit, open them from within BBEdit. If you had an app that natively understood these file extensions, you would still be able to double-click them. You can't just say "they're text files" and be done with it. If they were text files they would have a ".txt" extension. Since they don't, and since you don't have an app that understands that extension, the operating system protects you from these files.

Yes, opening such .xmp with quarantine flag via BBEdit > File > Open... works.


In order to open such .xmp via the Finder (by double-clicking, or Open With > BBEdit, or drag and drop on top BBEdit) the fix is to remove quarantine flags by 'xattr -d com.apple.quarantine *.xmp' or via Privacy & Security but the latter works only for a single file.


Another option is to change .xmp suffix to .txt. Then BBEdit and TextEdit can open it via the Finder. Changing the suffix back to .xmp again prevents opening the file.


I asked this from BBEdit support and they said that the quarantine behavior is solely and completely under the behavior of macOS; the application (BBEdit or otherwise) plays no role. (At the point the alert is presented, the OS has not even asked the application to open the file, thus there is no opportunity in the application for acceptance or refusal.).


I have had no problem with .webp images but apparently none of my apps, workflow, or downloads have attached quarantine flag to them anyway.


p.s. You can generate such new .xmp with the com.apple.quarantine flag in Sequoia (15.5) Photos.app > select image > File > Export > Export Unmodified Original > Export IPTC as XMP.


Then try to open the exported .xmp with BBEdit or TextEdit and you are greeted with an alert: "image.xmp Not Opened. Apple could not verify image.xmp is free of malware that may harm your Mac or compromise your privacy". This did not happen in previous macOS versions. It does not help if you set BBEdit to open all .xmp by default. You can open that .xmp file via Privacy & Security but that does not fix it for other .xmp files.

May 20, 2025 3:10 AM in response to BDAqua

Same error message when I try either of those.


It's like MacOS thinks these files are Apps from unknown developers. If I go to System Settings-Privacy & Security there is a message that the file was blocked and the Open Anyway button like an unsigned app might have.


Interrestingly, if I change the file extension to TXT I can open them normally. So it's something to do with the extension, but I've been opening these types of files for many years and have never had a problem until now.

May 20, 2025 6:00 AM in response to Silicon-Surfer

This seems to be the same issue as Sequoia 15.4.1-15.5 being overprotective for pure data files such as .xmp, .webp, .mod, .dat etc if they happen to contain com.apple.quarantine flag.


For example, Photos.app inserts quarantine tag to the exported .xmp. My old .xmp files also have this tag but previous macOS versions have not refused to open them.


How to permanently allow opening .webp fi… - Apple Community


May 20, 2025 3:20 AM in response to Silicon-Surfer

Silicon-Surfer wrote:

Interrestingly, if I change the file extension to TXT I can open them normally. So it's something to do with the extension, but I've been opening these types of files for many years and have never had a problem until now.

Apparently macOS no longer supports the extensions so you have to change the extension or open them from the File menu from any text editor.

May 22, 2025 11:54 PM in response to etresoft

The version of MacOS I'm using may be relevant, but suggesting that users shouldn't update doesn't help solve the issue. By that logic we'd all be using the OS that came pre-installed on our machines when we bought them.


After some more testing, it seems that if the OS doesn't know a file extension, then it's automatically given the com.apple.quarantine attribute. If for example a TXT file has the extension changed to XYZ, even if you go into file properties and select TextEdit and click "Change All", the file now has the quarantine flag and won't open by double clicking. This is definitely new behaviour for MacOS. Simply changing the extension back to TXT removes the quarantine flag. This is likely the same issue that people have been complaining about with webp files.


I have read that it may not be intentional behaviour and could be caused by a problem with the filesystem, so still looking into that.

May 23, 2025 5:17 AM in response to Silicon-Surfer

Silicon-Surfer wrote:

The version of MacOS I'm using may be relevant, but suggesting that users shouldn't update doesn't help solve the issue. By that logic we'd all be using the OS that came pre-installed on our machines when we bought them.

That's not a bad approach. Your Mac will then always be as stable and reliable as the day you bought it.


If you want to upgrade to get some fancy new feature, there's nothing wrong with that. Just never do an upgrade hoping that it's going to magically "fix" some bug. You'll always be disappointed.



Simply changing the extension back to TXT removes the quarantine flag. This is likely the same issue that people have been complaining about with webp files.

That isn't quite what's happening, but it's definitely the same as the webp problem. You need to have apps that advertise support for webp or xyz files. That's the key.


I have read that it may not be intentional behaviour and could be caused by a problem with the filesystem, so still looking into that.

That is possible, hence my first point.

May 20, 2025 7:07 AM in response to Matti Haveri

Matti Haveri wrote:

This seems to be the same issue as Sequoia 15.4.1-15.5 being overprotective for pure data files such as .xmp, .webp, .mod, .dat etc if they happen to contain com.apple.quarantine flag.

The content of the files is irrelevant. It's the extension. If you don't have an app that advertises support for that particular type of file, then you can't double-click it. So this causes lots of problems with "generic" files like ".dat" and other things that were in common use as quasi-text files. It also applies to any relatively obscure formats like .xmp and .webp.

May 23, 2025 5:14 AM in response to Matti Haveri

Matti Haveri wrote:

I asked this from BBEdit support and they said that the quarantine behavior is solely and completely under the behavior of macOS; the application (BBEdit or otherwise) plays no role. (At the point the alert is presented, the OS has not even asked the application to open the file, thus there is no opportunity in the application for acceptance or refusal.).

That's not true. The first time you launch an app, Gatekeeper performs its verifications on the app and either blocks it or allows it. As a side effect of allowing it, it also incorporates the app into the launch services database. This is where it records all of the file types that the app says it can open.


Then, years later, when you double-click on a downloaded, quarantined file, the operating system knows whether or not BBEdit could open the file. If BBEdit wants to explicitly support all of these myriad text file variants, it would have to make itself one of those grey market "opener" apps and advertise support for them all. It's possible, but I wouldn't recommend it.

May 20, 2025 5:04 AM in response to Silicon-Surfer

Why are you using the latest version of Sequoia to begin with? Disregarding this new, unwanted behaviour, how does Sequoia meaningfully improve your use of these files?


The reason for this change is obviously a security protection. Apple's competitors regularly devise new security hacks and then publish them in viral social media outlets. So Apple has to regularly update the operating system to protect against them. In virtually all cases, these hacks are actually harmless, but most people don't know that. The whole system is based on exploitation of people who don't have detailed knowledge of computer security, which is practically everyone. So after one, two, or 12 of these "update your Apple device now!" stories, you did as you were told. Congratulations. You're now secure.


In the future, you will need to open such files using a safer method. If you have an app that can open them like BBEdit, open them from within BBEdit. If you had an app that natively understood these file extensions, you would still be able to double-click them. You can't just say "they're text files" and be done with it. If they were text files they would have a ".txt" extension. Since they don't, and since you don't have an app that understands that extension, the operating system protects you from these files. Your repeated installations of the latest version of macOS over the past 20 years have convinced Apple that this is the behaviour that you require.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Harmless downloaded files can't be opened

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.