jelle wrote:
> Hi,
> 
> I'm working on scripting Indesign, a dtp app from Adobe.
> Thing is that I'm able to dispatch the application via 
> win32com.client.Dispatch('Indesign.Application')
> which works just fine, but the thing is that I have no idea which methods are
> available:
> 
> In [8]: ind = win32com.client.Dispatch('Indesign.Application')
> 
> In [9]: ind.
> ind._ApplyTypes_             ind.__setitem__
> ind._FlagAsMethod            ind.__str__
> ind._LazyAddAttr_            ind._builtMethods_
> ind._NewEnum                 ind._enum_
> ind._Release_                ind._find_dispatch_type_
> ind.__AttrToID__             ind._get_good_object_
> ind.__LazyMap__              ind._get_good_single_object_
> ind.__call__                 ind._lazydata_
> ind.__cmp__                  ind._make_method_
> ind.__doc__                  ind._mapCachedItems_
> ind.__getattr__              ind._oleobj_
> ind.__getitem__              ind._olerepr_
> ind.__init__                 ind._print_details_
> ind.__int__                  ind._proc_
> ind.__len__                  ind._unicode_to_string_
> ind.__module__               ind._username_
> ind.__nonzero__              ind._wrap_dispatch_
> ind.__repr__                 ind.__class__
> ind.__setattr__
> 
> In [9]: doc = ind.ActiveDocument
> 
> In [10]: doc
> Out[10]: <COMObject <unknown>>
> 
> Since there is no *.tlb file in the program's directory, I haven't got an idea
> on how to get some level of introspection. Just being able to see which 
> methods
> are available would be a Big Thing!
> 
> Cheers,
> 
> -jelle

You can use the COM browser that comes with ActiveState's Python distribution 
to 
see all the methods.  This normally how I figure this sort of thing out.

-Larry

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to