To run this agent you must have at least one document selected

Is there a way to code an agent so that you dont have to go into the database and select a document before running the agent to avoid the “To run this agent you must have at least one document selected” error?

Subject: Look at the Target property

In the Agent Properties dialog box change the Target from “All selected documents” to “None”