-- applescript to switch firewall on/off -- make it run on your remote mac (e.g. with Power Manager: http://www.dssw.co.uk) -- or use a apple mail rule to start the runtime-version set returnCode to do shell script "/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate" if returnCode = "Firewall is enabled. (State = 1) " then do shell script "sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off" user name "xxxx" password "password" with administrator privileges delay 4 else do shell script "sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on" user name "xxxx" password "password" with administrator privileges end if set returnCode to do shell script "/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate" display dialog returnCode giving up after 4