Guide to writing a shutdown script on a network using applescript
Applescript (and any other mac scripting applications) have a flaw when it comes to ssh scripts. They are missing a vital ssh-askpass hidden system file that can only be created in terminal. This file can be created using this guide:
http://discussions.apple.com/thread.jspa?messageID=12896463&tstart=0
After you have followed the steps in these guides to restore ssh-askpass, open applescript and type in "do shell script 'ssh -t -t computer@server' password 'insert password here' with administrator privileges"
"do shell script 'shutdown -h now' password 'insert password here' with administrator privileges" This script can now be saved as an application and distributed over your wireless network for remote shutdown.
After you have followed the steps in these guides to restore ssh-askpass, open applescript and type in "do shell script 'ssh -t -t computer@server' password 'insert password here' with administrator privileges"
"do shell script 'shutdown -h now' password 'insert password here' with administrator privileges" This script can now be saved as an application and distributed over your wireless network for remote shutdown.
Imac 3.06 GHz i3, Mac OS X (10.6.6), 4 GB Ram, 500 GB internal memory