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

Re: [MacPerl] Scripting I/O



At 08.55 1998.02.23, George Michel wrote:
>I can pass MacPerl variables to an Applescript but is it possible to get
>the value of an Applescript variable back into my MacPerl script?  That
>is, when I run an Applescript from the Script Editor the output is
>displayed to a screen, but not when I run the Applescript from within
>MacPerl.

  $script = MacPerl::DoAppleScript(<<'  EOS');
  tell application "Finder"
    open startup disk
  end tell
  EOS
  print $script, "\n";

Returns:

  startup disk of Application "Finder"

Is that what you want?

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch