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

Re: [MacPerl] Network Scripting Question



tkimpton@mail2.maned.com wrote:

>4. Write the droplet to use Apple Events/PPC communications to
>send the script to the server's MacPerl (this is the hard part :-).

I wrote something that used AppleEvents to communicate between two
applications. It was so that when machine A found a virus it could alert
machine B.

My rough notes _may_ help (this is AppleScript, not Perl):

The alerting machine used the AppleScript:

tell application "<whatever>" of machine "<chooser name>"
    VirusAlert()
end tell

and the receiving machine has an AppleScript, written using ScriptEditor
and saved as an application and always running, which contained:

on VirusAlert()
    display dialog "Virus alert on other Mac"
end VirusAlert

_______________________________________________________
        Opinions are my own, not my employers
     Vincent Loach, Analyst/Programmer, Pindar plc
Tel: +44 (0)1904 613040    Email:  V.Loach@pindar.co.uk
Fax: +44 (0)1904 613110    URL: http://www.pindar.co.uk