I don't think this is possible through objects. One reason is it wouldn't be possible from a standard script accessing another script; unless you read/imported the entire class object through a function, which kind of defeats the purpose of using an external script "class" (in DesktopX).
Just tried doing this using an external script with the same results. The closest work-a-round - if you're set on using classes - is to declare the object in "Object01" script and access it the same as you would a function.
Code: vbscript
- ' Object01 Script
- Dim vTest : Set vTest = New MyTestObject
- Class MyTestObject
- Sub SayMessage()
- MsgBox "Test"
- End Sub
- End Class
- ' Object02 Script
- DesktopX.ScriptObject("Object01").vTest.SayMessage