Hmmm thats a very interesting idea with the midi. At work we have templates, a different one for each show. So one for the cop show one for the airport show etc. Because its post production though, we don't use midi. But what if I made a hidden midi track with a unique combination of notes and put it into each template... But then it still wouldn't tell you what session you were in, only what show you were on.
Such a shame that pdvst is in the graveyard, because I would have made it, then wrapped it to RTAS. Then I would have made a separate track with no output, called it "counter" and just popped the plugin onto it.
I spent some time with python today, ran through the first 6 tutorials online. I hear that Pd can execute python scripts, so I'll see where that takes me, both for this purpose and also for the general enjoyment of learning.
If only those bastards at Avid would give people the SDK to write plugins!