Sean Carte writes: |>$x=5; |>$y=6; |>$aNumber = MacPerl::DoAppleScript(<<EOS); |>display dialog "Enter $x + $y" default answer "" |>get text returned of result as number |>EOS |I didn't realise I could simply drop Perl variables |directly into an embedded AppleScript. The embedded AppleScript is just a string as far as perl is concerned, so you can do anything in it you could do in any other string, and you can build it the same way you can build any other string. Brian ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch