<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>I hope you don't actually make this change... atomic save is desirable, even if you end up losing some metadata.<br></div><div><br></div><div>What are other tools doing? I wonder if you give TM Full Disk Access, does it still throw the error?<br></div><div><br></div><div>I think the below is a bad example, one that's promoted (unfortunately) by Outlook on Windows. You shouldn't (IMO) assume that an attachment is something you can open and write to and save again. If you want to save it, then you should be saving it somewhere other than in the original message. Anything else just leads to eventual data loss and TM shouldn't bend over backwards to facilitate it.<br></div><div><br></div><div id="sig39065985"><div>--<br></div><div>Marc Wilson<br></div><div><a href="mailto:posguy99@gmail.com">posguy99@gmail.com</a><br></div></div><div><br></div><div><br></div><div>On Wed, Apr 15, 2020, at 7:24 PM, Allan Odgaard wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:sans-serif;"><div style="white-space:normal;"><p dir="auto">On 16 Nov 2019, at 22:16, Timothy Bates wrote:<br></p></div><div style="white-space:normal;"><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(119, 119, 119);color:rgb(119, 119, 119);margin-top:0px;margin-right:0px;margin-bottom:5px;margin-left:0px;padding-left:5px;"><p dir="auto"></p><div>Opened a file from an email attachment<br></div><div> <br></div><div> On save from textmate, I get this error:<br></div><div> <br></div><div> The document “BadFactorScoresExample.R” could not be saved.<br></div><p></p></blockquote></div><div style="white-space:normal;"><p dir="auto">Apple Mail saves attachments in a Mail Downloads folder that appears to be setup not to be writable (by other applications?).<br></p><p dir="auto">It’s unclear to me how exactly it is setup, because the classic file mode flags do allow writing, but try command-click the proxy icon, and the folders are badged with a minus symbol:<br></p><p dir="auto"><img src="cid:3A0A5FA3-E22B-4038-B99C-76D3F538DE1D@textmate.org" alt="" title="PastedImage.png"><br></p><p dir="auto">This could be by design, because really, only Mail should control those folders.<br></p><p dir="auto">That said, you can disable atomic saving for all but remote volumes by putting this in <code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0.4em;padding-bottom:0px;padding-left:0.4em;" bgcolor="#F7F7F7">~/.tm_properties</code>:<br></p><pre style="background-color:rgb(247, 247, 247);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-left:15px;margin-right:15px;overflow-x:auto;padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px;" bgcolor="#F7F7F7"><code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;" bgcolor="#F7F7F7">atomicSave = remoteVolumes
</code><br></pre><p dir="auto">This will make it work because TextMate then doesn’t write a new file, but opens the existing file for (over)writing.<br></p><p dir="auto">I’m considering making this the default, because with the loss of <code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0.4em;padding-bottom:0px;padding-left:0.4em;" bgcolor="#F7F7F7">exchangedata</code> (when we moved to APFS) I think there are now too many downsides to atomic saving to make it the default :(<br></p></div></div><div><br></div><div>_______________________________________________<br></div><div>TextMate mailing list<br></div><div>TextMate@lists.macromates.com<br></div><div>https://lists.macromates.com/listinfo/textmate<br></div><div><br></div><div><b>Attachments:</b><br></div><ul><li>PastedImage.png<br></li></ul></blockquote><div><br></div></body></html>