• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: calling a custom applescript on a remote machine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Sending mail via Mail.app
  • Next by Date: Re: Getting raw AE codes with Smile
  • Previous by thread: Re: Moving files from desktop to User folders
  • Next by thread: Re: Getting raw AE codes with Smile
  • Index(es):
    • Date
    • Thread