QUOTE(pinyojit @ 09/11/07, 12:50 AM) [snapback]273078[/snapback]
I want run my command every open file.
if, by that, you mean that every time you open a file you want to run a command you should use a scriptJob.
CODE
scriptJob -event "SceneOpened" "myCommand";
check the Mel Command Reference docs for more info on scriptJob.