Hi c.pfaffenbichler,
I often use the forum search. I preferred reading the correct answers and (in the past) as helpful marked answers, especially in long threads. Others are probably the same opinion.
What photoshop version do you use?
var idT = charIDToTypeID( "T " );
gives an error in CS3 and CS5.1 under Windows.