To Make Sure TextMate is FrontMost, use this IF/THEN:
Note that this Macro will Trigger ONLY once when TextMate is first activated.
If you want to use it while already activated, you will need to add another trigger to the same Macro.
If your Macro is still not working, please post your Macro.
See How to upload your macro. Instructions for uploading to an existing post are just below the main instruction.
Because the Macro would NOT trigger when TextMate is NOT frontmost.
This macro is designed to trigger (in a Global Macro Group) when any other app is front most.
If TextMate is already frontmost, then you can NOT trigger on it being activated.
In that case you need to use another trigger, lke a HotKey, as I stated:
That is all very true. And perhaps the OP can be read a couiple of different ways. I see it as "I only want this macro to run if Texmate is active. Hence the suggestion of a macro group.
Thanks a lot, I thought I tried that before but obviously I most have missed something.
it's seems to work perfectly now. thanks for your help and sorry if my post was confusing at the first place.