I had to use "attr.save-on-deactivate" in the Scope Selector instead, but that did the trick! Thanks so much for explaining this to me.

Ah yes!  Apologies - silly typo!

David.

 
On Wed, Feb 29, 2012 at 12:39 PM, <textmate-request@lists.macromates.com> wrote:

------------------------------

Message: 4
Date: Wed, 29 Feb 2012 18:39:20 +0000
From: David Howden <dhowden@gmail.com>
To: TextMate users <textmate@lists.macromates.com>
Subject: [TxMt] Re: textmate Digest, Vol 45, Issue 50
Message-ID:
       <CAP2kWKGbE+81=t_5On1x_hDbdXaZr9LOO7gTwWifCUnxk+NH-Q@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

So this works for me.  In the .tm_properties file:

[ *.tex ]
scopeAttributes = 'attr.save-on-deactivate'

Then put attr.save-on-deactive in the scope for the 'Save on focus lost'
command.

Be careful: scopeAttributes seem to only be attached to files when you open
them, so if you change .tm_properties be sure to re-open the files.  You
can make sure that the scope attribute has been set by using the "Show
Scope" command in bundle development or Ctrl-Shift-P, just to check that
the attribute is being set properly.

David.



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate