Copy the below code into Script Editor. Replace ShortUserName, Password, and 10.15.1.12 with the destination machine's short user name, the user's password, and the machine's IP address.
When you run the script, your clipboard contents will be placed onto the destination machine's clipboard.
property theMachine : "eppc://ShortUserName:Password@10.15.1.12"
tell application "System Events"
try
-- this works in Tiger
set xfr_clip to (the clipboard as text)
on error
try
-- this works in Earlier Versions
set xfr_clip to «class ktxt» of ((the clipboard as text) as record)
on error err_msg
display dialog err_msg
end try
end try
end tell
tell application "System Events" of machine theMachine
set the clipboard to ((xfr_clip) as text)
end tell
[robg adds: To make this work, you need to do two things. First, visit System Preferences: Sharing on the destination machine, and enable Remote Apple Events. Second, and this bit threw me for a while (thanks Kirk!), the destination machine must also have Folder Actions enabled -- otherwise, there's no System Events process, and the script dies. Go to Applications -> AppleScript, and double-click on Folder Actions Setup to enable Folder Actions. Once these two things are done, the script works great.]

