<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 16 Nov 2019, at 22:16, Timothy Bates wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Opened a file from an email attachment<br>
<br>
On save from textmate, I get this error:<br>
<br>
The document “BadFactorScoresExample.R” could not be saved.</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?).</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:</p>
<p dir="auto"><img src="cid:3A0A5FA3-E22B-4038-B99C-76D3F538DE1D@textmate.org" alt="" title="PastedImage.png"></p>
<p dir="auto">This could be by design, because really, only Mail should control those folders.</p>
<p dir="auto">That said, you can disable atomic saving for all but remote volumes by putting this in <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">~/.tm_properties</code>:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">atomicSave = remoteVolumes
</code></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.</p>
<p dir="auto">I’m considering making this the default, because with the loss of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 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 :(</p>
</div>
</div>
</body>
</html>