Page 1 of 1

Remove Sonoma Mail Attachement Link (Feature Request?)

PostPosted: Tue Dec 17, 2024 10:00 am
by BenW
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!

Re: Remove Sonoma Mail Attachement Link (Feature Request?)

PostPosted: Tue Dec 17, 2024 12:26 pm
by Mr_Noodle
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.