Hi Guys,
First time poster, been using TM for a while though.
I'm
trying to write a command that will run, do it's thing, then save the
file. The trick is how to get it to save AFTER the command alters the
file. Is this possible?
Specifically, what I am trying to do is update a `Last
Modified:` string whenever I save a file. That's the easy part, I did
it with some python triggered by cmd-s. Now that the string has
been altered, how do I save the file? It seems possible with
applescript, but I can't get it to work.
If anyone has any suggestions about this final step, that
would be great. I know there's something wrong with my applescript, it
tends to behave differently in osascript than in Script Editor, is this
because of the escaped quotes? Something to do with combining triple- and single-quotes?
I've searched everywhere, apple documentation, textmate
wiki/mailing list, and turned up nothing! It seems to me
that having a "Save After" option for Commands would be useful. What
do you guys think? Maybe this has been discussed already.
Thanks for your help,
Jim Bagrow
Here is the command:
Save: Current File
Command:
******************************