I want to color badge files and folders based on the some condition in finder, what is the approach to achieve this in Mac OS X 10.6
I have checked this question: Th
Unfortunately there is no public API for that. You need to inject the code inside Finder and patch it.
Before 10.6, it was quite easy to inject codes into Cocoa app by just using InputManagers. This is no longer true but you can do that using OSAX, see this blog post. SIMBL does that automatically.
But you have to figure out what's going on inside Finder to see how to patch things.
To explore the inside of Finder, F-Script anywhere will help you.
Have fun and good luck!