Re: calling a custom applescript on a remote machine
Re: calling a custom applescript on a remote machine
- Subject: Re: calling a custom applescript on a remote machine
- From: Axel Luttgens <email@hidden>
- Date: Fri, 03 Jan 2003 19:01:37 +0100
Russ McBride wrote:
This should be easy. I'm trying to call a custom applescript on a
remote machine.
I've been looking at Danny Goodman's example which requires a
compiled always-open applescript app running on the remote machine:
on networkRun(myScript)
return (run script (myScript))
end networkRun
Just to be sure...
Is program linking enabled on your remote machine, that is, the one with
networkRun running?
And, if you are on pre-MacOS 10, is program linking for that applet
specifically enabled?
You can then have a script on the local machine like this:
set remoteApp to application "SomeRemoteDrive_remotePath_to_networkRun"
tell remoteApp
networkRun(localScript)
end tell
script localScript
beep
end script
Alas, no dice.
No error messages? Does everything just silently fail?
Now, it seems that you should at least specify the target application
that way:
application "networkRun" of machine "remoteMachine" [of zone "someZone"]
if you are working over AppleTalk, or:
application "networkRun" of machine "eppc://remoteMachineIP"
if you are doing program linking over TCP/IP.
And I'd rather have the script I'm running remain on
the remote machine. Anyone have any working examples?
It depends on what you exactly want.
Anyway, you can just write your own script and save it on the remote
machine, in place of networkRun.
Then, either you have designed it as a stay open, or you first launch it
by, for example, telling the remote Finder to open it.
thanks,
Russ
HTH,
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.