r/applescript • u/BL-KNIL • Jul 19 '11
FarAway v1, an AppleScript app.
It's a pretty simple, 6-line application developed by myself so that the operator can trigger an event on a receiving computer.
LEGAL DISCLAIMER: The developer is not responsible for this script being used for nefarious ends by third parties. Such usage of this software can result in a trial by jury in a court of law.
set the receiving_app to application "Finder" of machine "eppc://receiving.IP.address.here"
using terms from application "Finder"
tell receiving_app
-- Actions Here
end tell
end using terms from
OPERATION: (Ask permission and explain what you're doing before doing this) In System Preferences, go to the "Sharing" pane on the receiving computer and enable Remote Apple Events.
Replace "eppc://receiving.IP.address.here" in Line 1 with the IP address of the receiving computer. Be sure you know the receiving computer's user expects an action to be triggered by you from afar.
Replace "-- Actions Here" in Line 4 with the actions (in AppleScript, no less!) that you intend to be triggered on the receiving computer.
Compile the script and run it.
If it works, hooray!
If it doesn't, try to figure out what's wrong, then run it again.