Mac OS X Keychain

Does anybody have or know to write a simple applescript to lock a Mac OS X keychain automatically when activated.

No OS X here but, according to the dictionary, this will lock all keychains in OS 9.1.

tell application "Keychain Scripting" to lock

Specific keychains can be targeted if necessary.
Rob J

But the problem is that my (basic) OSX setup doesn’t have an app with that name or that nature. I do have Keychain Access but it is not scriptable.
Eelco Houwink