Simple Agent has Stopped Working

A one line agent I used in Notes 5

@Command ([ToolsRefreshSelectedDocs]);

which was set to work on selected documents no longer works in Notes 6.5. I get the error:

@Command and other UI functions are not allowed within this search type; please select “None” as your runtime target

What does this mean? How do I get this agent working again? Thank you

Subject: Simple Agent has Stopped Working

Target = None is the ND6 equivalent of R5’s “Run once (@Commands may be used)”. An agent with an @Command should not have worked in R5 either if it was set to anything but “Run once”; the [ToolsRefreshSelectedDocs] automatically runs only on documents selected in the current ui view.