How can I conditionally color files and folders in the OS X Finder?

前端 未结 5 1688
太阳男子
太阳男子 2020-12-17 05:05

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

5条回答
  •  爱一瞬间的悲伤
    2020-12-17 06:08

    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!

提交回复
热议问题