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

Re: [MacPerl] Still trying to print from MacPerl...



At 1.00 -0400 1999.05.21, firebug@apk.net wrote:
>As Chris ( and others ) have suggested, I'm tring to use Applescript to tell
>BBedit to print:
>
>#!perl -w
>
>$temp = 'myfile.print';
>open(F, "> $temp") or die $!;
>print F "my text to print";
>close(F);
>
>MacPerl::DoAppleScript <<EOS;
>tell app "BBEdit 3.5"
> print "$temp"
>end
>EOS
>
>unlink($temp) or die $!;
>
>But when I run this BBedit starts, but then MacPerl comes back with "Out of
>memory!"
>
>MacPerl doesn't seem to be using a lot of ram, and I have 96 Megs in my G3.
>
>Any ideas?

Not sure about the memory.  One thing I am fairly sure of is that you need:

  print alias "$temp"

Not just:

  print "$temp"

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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