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

Re:[MacPerl] Applescript and MacPerl



Suggestion: Use \"$x\" instead of "$x"

Let me know if these solve the problem.

The syntax of how to specify a MacPerl variable in AppleScript is not
consistent between various OSAXen and applications. Sometimes it is ",
sometimes it is \".

-Dave
-------

At 2:02 PM 12/11/96, John Gilmore-Baldwin wrote:
> Here's what I've tried:
>
> #!/usr/local/bin/perl
> $x = "Text text";
> &MacPerl'DoAppleScript(<<'END_SCRIPT');
> tell application "MacPerl"
>         make new Window
>         copy "$x" & "Inserting text the hard way." to character 1 of
>front Window
> end tell
> END_SCRIPT
>
> This gives me "$x" instead of "Text text".