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

Re: [MacPerl] AppleEvents via Net? (spooky actions at a distance)



Richard wrote:

>I'm trying to use Mac Perl to fire up a set of distributed apps on idle
>workstations overnight.
>
>I suppose I could just do the following:
>
>sub RenderLaunch {
>  MacPerl::DoAppleScript qq{
>    tell application "Finder" of machine "MarsObserver" of zone "Deimos"
>      open file "RenderAgent" of folder "Renderers" of folder \
>       "Extensions" of folder "System Folder" of startup disk
>    end tell
>  }
>}
>RenderLaunch;
>
>but that's AppleScript, and in raw form it brings up an annoying dialog asking
>for a password

Try the System Extension "AutoGuest INIT 2.0". The user documentation says:
"Problem:	It is not possible to send remote AppleEvents from a
"background-only application, because the EPPC toolbox requires that the
"user interact with the standard user authentication dialog box at the
"start of every session.

"Solution:	If guest access is available on the target machine, always log
"on as a guest without bringing up the authentication dialog box.

"The AutoGuest INIT installs two head patches into the system that work
"together to allow background-only applications to send AppleEvents to
"remote machines.  The first patch allows automatic connection to machines
"that provide guest access;
"....

I've installed AutoGuest INIT on my machine (the one which is running the
script) and tryed out a perl code similar to your's: It worked fine without
authentication. I don't remember where I've downloaded this INIT, but if
you're interested, I could send you a copy.

Michael

Michael Ziege
Sallenbachstr. 11
8055 ZŸrich
Switzerland
tel. 	++41-1-463 82 78
e-mail. ziege@ito.umnw.ethz.ch



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch