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

[MacPerl] Re: [MacPerl-Toolbox] New Mac::OSA::Simple, p2as



At 10:23 AM -0500 3/12/99, Chris Nandor wrote:
>I put up a new Mac::OSA::Simple 0.50 this morning, should be making its
>rounds.  Here is a revised p2as that takes advantage of the new save()
>method.  It greatly simplifies the script.  It is now very easy to save
>something as a compiled AppleScript:
>

Just a quick thanks for all the hard work you do for MacPerl.  Thanks!

>sub fix_text (\$) {
>    my $text = shift;
>
>    # more to do than just fix " marks and \ ?
>    $$text =~ s/\\/\\\\/g;
>    $$text =~ s/"/\\"/g;
>
>    1;
>}

Do we want to recognize the AppleScript line continuation character?  It
might not be terribly necessary, but there could be instances where people
are reading in scripts that have it.  I'm going to type it in in quotes,
and hope it doesn't get too mangled by mailers "Â".  I assume the AS
compiler recognizes it by ASCII value - but that might not be true.  If so,
it's 194.

-Jeff Lowrey



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