Hey Barttwell,
I created a simple plugin for a friend a while back similar to your needs, I just modified it a bit. It will save tool and pocket # to your .pro file. You would just have to modify your M6 to read from your .pro. Example below is tool3 and what ever you set your pocket to.
UC.Readkey("ATC Setup", "Tool3pocket", "");
To test drop it in plugin folder check "start up" and "enable". Use configure to set up
Hope you can find this of some use,
Dan
EDIT- And yes I' m a idiot and spelled compression wrong, I'm lost without spell check...lol