Creating lotusscript agent

How can I insert lotusscript code on an agent ? The code goes to a different DB and modifies a certain doc in that DB. The code is in a button right now and works fine. Also I am trying to set it to run on schedule, but I do not want it to run on any docs in the DB, just run the agent. Please help.

Subject: creating lotusscript agent

Hi,

  1. Copy code from button.

  2. Create new agent and change it to use LotusScript instead of Simple action(s).

  3. Paste the code from the button into the Initialize event of the agent and tweak it as necessary. You’ll have to get rid of the “Sub Click(Source As Button)” statement.

  4. Set the agent properties to run against “All documents in the database” even if the code does not do anything to the docs in that database. There is no way to specify “None” here.

Ken