Send Script to Another Computer

Not knowing much about AppleScript, how would I send a script to another networked computer?
I want a script to run on a networked computer. Can anyone give me a script I can use to trigger an AppleScript on another computer. I am using Tiger on both computers.

Thanks in advance - Sam

On the remote machine, you need to turn on “Remote Apple Events” under the Sharing preference pane (of System Preferences). Any application you want to control on the remote machine must already be running, because you can’t open applications on remote machines. Also, you will need the IP address of the remote machine.

Once that’s taken care of, you can try something like this:

tell application "Finder" of machine "eppc://127.0.0.1"
	beep
	-- do something
end tell

Be sure to change 127.0.0.1 to match the IP address of the remote computer.

Thank you so much. That did the trick. Works perfectly.

Sam