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

Re: [MacPerl] Perl & AppleScript question



james@pht.com writes:

>I have a question about how you pass a variable into a Applescript from perl. 
This is 
>what I want to do.
>
>clip---
>$from="ftp://triton.pht.com/games/action/apeiron-10.hqx";
>
>&MacPerl'DoAppleScript(<<'END_SCRIPT');
>tell application "Anarachie"
>fetch url "$from"

For variable interpolation to work, you should omit the quotes around
END_SCRIPT. See the Camel book, index entry "here-document".

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_