Hello Jeff,

Thank you for your reply.

I tried your script after installing Mac::Glue, but as I use mainly 
MacJPerl, it seems that my configuration is not exactly what is meant. 
Anyway, this script gives me the error message saying:

'activate' available from glue for 'Tex_Edit_Plus_4_0J'

Anyway, Mac::Glue requires much memory (I have only 64 KB memory...), and a 
special configuration.  I would still like to use Mac::AppleEvents to 
script Tex-Edit Plus.  Is it something too difficult...??

Thank you anyway.

Best regards,

Nobumi Iyanaga
Tokyo,
Japan

>
>I would suggest using Mac::Glue instead of Mac::AppleEvents.
>
>This script creates a new window contained the selected text, with styles.
>#######
>#perl -w
>use Mac::Glue;
>use strict;
>
>my $glue = Mac::Glue->new('Tex_Edit_Plus');
>$glue->activate();
>$glue->copy();
>$glue->make('new'=>'document');
>$glue->paste();
>#######
>
>Much nicer, I think...
>
>-Jeff Lowrey

Reply via email to