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

Re: [MacPerl] printing from browswer with glue



At 16:23 -0400 2000.09.26, Eric Rainey wrote:
>use Mac::Glue;
>
>my $IE = new Mac::Glue 'Netscape_Communicator';
>
>
>
>$IE->print("masterpiece:archive:2:2.html");
>
>$IE->ERRORS(sub {
>      my(@stuff) = @_;
>      print "Error: $stuff[4]";
>   });
>
>produces the following output.

Well, first, ERRORS is for handling errors.  It must be done before the
event to be handled is executed.

># # No event 'ERRORS' available from glue for 'Netscape_Communicator'
>File 'Pulp:werken:projects:masterpiece:db :applescript:printem_exp.pl';
>Line 27

And this must mean you don't have Mac::Glue 1.00.


>I don't know how to easily discern what version of Glue I'm using,
>it's doesn't say when I look it up in Shuck, but I just downloaded
>the sucker with cpan-mac today so I assume it's the latest version....

Yes, it does say in Shuck.  Look at the very bottom of the POD for
Mac::Glue.  Or do like any other Perl module:

   use Mac::Glue;
   print $Mac::Glue::VERSION;

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

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