<div dir="ltr"><div class="gmail_extra"></div>On Tue, Jul 9, 2013 at 2:00 AM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On 9 Jul 2013, at 2:31, Jeff Weinberger wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[�] after I saved [�] the execute permission was gone [�]<div class="im"><br>
<br>
1) Is this possible? Does Textmate do this?<br>
</div></blockquote>
<br>
No, TextMate will preserve the original file�s metadata.<br>
<br>
It will do an automatic �chmod a+x� for certain file types (with shebang), via a bundle item, but that is the opposite of your issue.<br>
<br>
That said, if you open the file in Transmit then Transmit will download it to a temporary and open that temporary file in TextMate. When TextMate saves, Transmit will upload the file, so the issue is more likely with Transmit not preserving the server�s file meta data.<br>


<br>
I assume you did �touch� and �chmod u+x� on the server (via ssh or similar).<br>
<br></blockquote><div><br></div><div style>First, thank you! This makes perfect sense. I will check to see if Transmit might be causing this.�</div><div style><br></div><div style>I wonder, though, when you say that TextMate preserves the original file's metadata, if that isn't the cause. Here's why I wonder:</div>

<div style><br></div><div style>The sequence of events is this:</div><div style><br></div><div style>- SSH to server with a terminal window�</div><div style>- touch filename</div><div style>- open filename with TextMate via Transmit</div>

<div style>- edit file</div><div style>- save file (but keep it open in TextMate)</div><div style>- chmod u+x filename</div><div style>- ./filename</div><div style>- edit in TextMate</div><div style>- Save from TextMate (and keep open)</div>

<div style>----> 'x' permission is gone</div><div style><br></div><div style>If TextMate re-writes the file with the metadata from the time it was originally opened, then that would cause the issue. If it writes the file without changing the then-current metadata (which have changed since it was opened) then the issue is likely Transmit.</div>

<div style><br></div><div style>What do you think?</div><div style><br></div><div style>Thank you so much for your help and advice on this!</div><div style><br></div><img alt="" width="1" height="1" src="http://bl-1.com/img/UWtebgdhWmZXMANh.gif"></div>