Editor script that is running in background

Hello :),

What is the best way to create an editor script that is always running in background in the editor and that has an update method called?

Thank you very much,
Rgds

BigBulle

Attach to this delegate:

http://unity3d.com/support/documentation/ScriptReference/EditorApplication-update.html

see: