Policies and encryption

I’ve set up a policy that states that all local databases should be encrypted - and it works perfectly if I create a database through the UI.

However, if I create a database using lotusscript, the policy is ignored. Has anyone else had this problem.