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

Re: [MacPerl] MacPerl as a Outlook Express Rule



At 17.17 -0600 2000.04.03, Keary Suska wrote:
>Outlook will only execute a compiled applescript, and nothing else. I
>believe that it uses the same function as executing a script from the script
>menu. With varying effort you could have an applescript that interacts a
>macperl runtime, having the runtime do all the work. I would say such an
>endeavor ranges from difficult to hair-pulling, and is not for the faint of
>heart.

Nah, it is easy.  At the very least, you can just do (as mentioned in a
previous post):

  tell app "MacPerl"
    -- myText passed to myScript
    set myReturn to Do Script [myScript, myText] mode batch
  end tell

I have a MacPerl droplet called p2as that converts MacPerl to a compiled
AppleScript, using one of two methods: embedding the MacPerl script in a
compiled AppleScript to pass to MacPerl, or having the compiled AppleScript
tell MacPerl to execute a specific script on disk.  To execute a MacPerl
script as a compiled script is as easy as the above, or if that is not easy
enough as easy as simply dropping the script on p2as and selecting "as
text" or "as alias".

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/
                                -=-
  I'm kinda tired.  I was up all night trying to round off infinity.
  Then I got bored and went out and painted passing lines on curved
  roads.
                --Steven Wright

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