Someone replied to the digest, so just in case you miss it, here is my response regarding attaching this to scope attributes:<div><br></div><div><div style>In the .tm_properties file:</div><div style><br></div><div style>[ *.tex ]</div>
<div style>scopeAttributes = 'attr.save-on-deactivate'</div><div style><br></div><div style>Then put attr.save-on-deactive in the scope for the 'Save on focus lost' command.</div><div style><br></div><div style>
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.</div>
<br><div class="gmail_quote">On Wed, Feb 29, 2012 at 3:47 PM, Edwin Moss <span dir="ltr"><<a href="mailto:ed.moss@4ssom.com">ed.moss@4ssom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Perfect!<div><br></div><div>That did the trick!</div><div><br></div><div>Thanks!</div><div><br></div><div>Ed.</div><div><div class="h5"><div><br><div><div>On Feb 29, 2012, at 8:17 AM, David Howden wrote:</div>
<br>Hi Ed.<div><br></div><div>Try removing the scope selector and see if it works.  I have input set to "Nothing", and output to "Discard".</div><div><br></div><div>I have added the command to the text bundle, so if you are still having problems I can just send you a copy of that.</div>

<div><br></div><div>David.<br><br><div class="gmail_quote">On Wed, Feb 29, 2012 at 3:12 PM, PowerPod <span dir="ltr"><<a href="mailto:ed.moss@4ssom.com" target="_blank">ed.moss@4ssom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
I created a "Command" in my personal bundle with:<br>
<br>
Scope Selector: attr.save-on-deactive<br>
Key Equivalent:<br>
Tab Trigger:<br>
Semantic Class: callback.application.did-deactivate<br>
Content Match:<br>
Save: Modified Documents<br>
Input: Scope     Format: Text<br>
Output: Replace Input    Format: Text<br>
Caret Placement: After Output<br>
Scroll for new output (unchecked)<br>
<br>
Still no joy. Yes, I am anxious to get this working. :) I really appreciate<br>
your help.<br>
<br>
Thanks,<br>
<br>
Ed.<br>
<div><div><br>
<br>
David Howden wrote:<br>
><br>
> Hi<br>
><br>
> Ok, so as I understand it you you now need to have a command which has the<br>
> scope set to attr.save-on-deactive, and is fired by the semantic<br>
> class: callback.application.did-deactivate<br>
> and is set to save all modified documents.<br>
><br>
> David.<br>
><br>
> On Tue, Feb 28, 2012 at 5:00 PM, Edwin Moss <<a href="mailto:ed.moss@4ssom.com" target="_blank">ed.moss@4ssom.com</a>> wrote:<br>
><br>
>> I am having no joy in getting this to work in my .tm_properties file.<br>
>><br>
>> [ *.{rb,erb,haml,js,html} ]<br>
>> scopeAttributes = 'attr.save-on-deactivate'<br>
>><br>
>> Has anyone else got it to work? Any help would be appreciated.<br>
>><br>
>> Thanks,<br>
>><br>
>> Ed<br>
>><br>
>><br>
>> _______________________________________________<br>
>> textmate mailing list<br>
>> <a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
>> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> textmate mailing list<br>
> <a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
><br>
<br>
</div></div><span><font color="#888888">--<br>
View this message in context: <a href="http://old.nabble.com/scopeAttributes-and-deactivate-working--tp33408128p33414690.html" target="_blank">http://old.nabble.com/scopeAttributes-and-deactivate-working--tp33408128p33414690.html</a><br>


Sent from the textmate users mailing list archive at <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<br>
</font></span><div><div><br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div>
<br></div></div></div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br></div>