i want to shut down a mac in my private airport networt, it always has the same ip
tell application “System Events”
shut down
end tell
that’s the way i shut down my own mac
thanks for your help
i want to shut down a mac in my private airport networt, it always has the same ip
tell application “System Events”
shut down
end tell
that’s the way i shut down my own mac
thanks for your help
Provided ‘Remote Apple Events’ are enabled (in sharing preferences), in theory, you can target an application on a remote machine using the following format:
set remoteMachine to "eppc://<ip.of.remote.machine>/"
tell application "System Events" of machine remoteMachine
shutdown
end tell
However, in practice targetting System Events on a remote machine has proven to be very hit-or-miss. Other applications are fine, it’s just System Events that has issues.