--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
>
>
> > <http://tech.groups.yahoo.com/group/powerpro-beginners/message/2231>
>
> Ta. Right, can't run it, as I don't have InDesign, whatever that
> is.
Its for desktop publishing. I've never done much of anything with it, and the
version I have is old. Just trying to help Brother Gabe.
>
> > > I can probably add com.typeName aka han.typeName.
> > Thanks, if I could get the typeName of appRef.Selection.Item(1)
> > it would be helpful.
>
> I assume appRef.Selection.Item(n) returns a handle?
Yes.
>
> Can either provide typeName service or add function to get_description e.g.
>
> han.description("name")
>
> I have to try to avoid service names that might conflict with
> names of object methods. E.g. Name is probably a bad idea, cause
> I bet there are a fair number of COM objects exposing a Name
> method.
OK, however you think best to name it, etc. Just at least mention in the docs
that it does what vbscript's typeName function does.
Javascript btw calls it constructor.name. But according to the documentation,
Javascript has a complication related to items in a collection, in that the
item gets identified as an item of the type of the collection. So there is a
workaround if using Javascript wherein you first have to do something with
getElements().
New problem. Brother Gabe wants to process unicode strings. The
documentation says that with vbscript, unicode strings work in
the method we are processing because most vbscript editors
support unicode. So I guess it might be possible to do it here.
In the com plugin doc you say, "I have not currently dealing with
UNICODE strings either in service parameters or results. I can
probably do so by establishing connections between this plugin
and the unicode plugin if there's demand."
In this particular case we would need to be able to send unicode in arguments.
Regards,
Sheri