Post

Replies

Boosts

Views

Activity

Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thanks, Kevin, that’s a helpful way to frame it. Our use case is exactly that: preparing external drives for TVs, consoles and other non-Mac devices, so we’ll make the feature opt-in and explain clearly what it removes. If you have any insight into what re-applies kMDItemDownloadedDate and kMDItemWhereFroms after the rewrite, I’d be glad to hear it, but no worries if not.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thanks again, Kevin. Your suggestion works on exFAT, with one extra step. With com.apple.security.files.user-selected.executable, a plain read/write copy renamed over the original has no quarantine and no attributes. Shortly afterwards, kMDItemDownloadedDate and kMDItemWhereFroms reappeared on the new file (not the quarantine), which recreated the AppleDouble file. Since the file is no longer quarantined, the sandboxed app could then delete the ._ file, and it stayed gone. Do you know what re-applies those two metadata attributes, and whether that’s expected?
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thank you, Kevin, that’s very helpful. I’ll test the read-and-rewrite approach on exFAT with com.apple.security.files.user-selected.executable and report back here, including whether the AppleDouble file disappears when the original is replaced. Understood about the purpose of the quarantine attribute; I’ll keep it on anything executable regardless.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thanks, Kevin, that’s a helpful way to frame it. Our use case is exactly that: preparing external drives for TVs, consoles and other non-Mac devices, so we’ll make the feature opt-in and explain clearly what it removes. If you have any insight into what re-applies kMDItemDownloadedDate and kMDItemWhereFroms after the rewrite, I’d be glad to hear it, but no worries if not.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thanks again, Kevin. Your suggestion works on exFAT, with one extra step. With com.apple.security.files.user-selected.executable, a plain read/write copy renamed over the original has no quarantine and no attributes. Shortly afterwards, kMDItemDownloadedDate and kMDItemWhereFroms reappeared on the new file (not the quarantine), which recreated the AppleDouble file. Since the file is no longer quarantined, the sandboxed app could then delete the ._ file, and it stayed gone. Do you know what re-applies those two metadata attributes, and whether that’s expected?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Sandboxed app can't delete AppleDouble (._) files of quarantined files on exFAT, even with user-selected access.
Thank you, Kevin, that’s very helpful. I’ll test the read-and-rewrite approach on exFAT with com.apple.security.files.user-selected.executable and report back here, including whether the AppleDouble file disappears when the original is replaced. Understood about the purpose of the quarantine attribute; I’ll keep it on anything executable regardless.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w