[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Glue: working with reference forms



At 3:58 PM -0400 9/9/99, Chris Nandor wrote:
>I would first try:
>
>  use Data::Dumper;
>  print Dumper $selection;
>
>See what is in there.
>

I did that before I wrote my question actually.  I got an out of memory
error.  Once I upped the memory allocation of BBEdit, (after you replied) I
was able to actually get a print out.  It was very very long and looked
like it was the entire glue object.

This suggests that I might have to look at the reply, rather than the
direct result?

>Also, you may be able to use the "as" parameter to get the return value as
>something more usable:
>
>  my $s = $n->get($n->prop(selection => of => 'computers_window'), as =>
>'???');
>
>??? might be 'number' or 'string' or somesuch.

If I try 'as string', and just do a plain print $selection, I get undef.
(That is, I get no output).

Again, maybe I need to look at the REPLY?

I verified that both the glue and the AppleScript send the exact same AE,
so it's not a problem of terminology.

-Jeff Lowrey



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org