Link to home
Start Free TrialLog in
Avatar of tdietz
tdietz

asked on

VBScript and security issues with GetObject

I am trying to invoke an Automatiom method from a third party app (Documentum) from VBScript.  When I execute the code, I get the following error:  "Object not safe for scripting".  This is from IE3.02

The code works fine from within VB 5.0

Code below:
---
Sub Button_Click
Dim dmObj
Set dmObj = GetObject(, "Documentum.Workspace32")

dmObj.dmAPIExec("domenu,c,menubar,dc_new_doc_mthd")

End Sub
ASKER CERTIFIED SOLUTION
Avatar of MikeHartmann
MikeHartmann

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tdietz
tdietz

ASKER

So all someone has to do is mark the object as "Safe for scripting" and it will work?

That doesn't sound like a very good security model.