Remove Sonoma Mail Attachement Link (Feature Request?)

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

I really don't like the new OS feature that can't be turned off, where a mail icon appears next to a file. (From a web search I can tell I'm not alone.)

The icon/link CAN be removed using a multi-step, manual process on each file, described here:
https://discussions.apple.com/thread/255337570

Can Hazel remove that link for us?

Natively would be great. Via a script would be fine. But I'm not at all a script writer, so am hoping someone who is has worked this out.

Here's a reddit thread with some additional info/clues/leads that might be helpful in the effort:
https://www.reddit.com/r/MacOS/comments ... h_link_to/

Hazel might want to determine if the link exists for a given file... is that possible, too? Though I guess a removal action just wouldn't do anything if the link didn't exist.

It just seems to me Hazel would be a really good tool for this. Thanks in advance!
BenW
 
Posts: 8
Joined: Tue Mar 10, 2020 7:52 pm

Looking at this a bit closer, it seems like it's tied to an extended attribute (xattr) on the file. You can maybe come up with a script to remove it via the xattr command but it's unclear to me what side effects that may have. The attribute itself's name seems to have a randomly generated part of it which makes it a bit more difficult.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion