well l’m trying not to use the ip as there is about 180 computers in the school and like only 4, 5 routers so l miht send it to like 40somputers, and that would be awkard
um…l’ll try it at school on moday, and modifiy this script a little more, if l can
and the user name for the school com in : student and there is no password ,it’s just a leave blank password
thanx for trying
Ive been trying something similar to display a warning dialog before remote shutdown but with no luck =[
tell application "finder" of machine "123.4.5.6"
activate
display dialog "Shuting down now"
delay 10
do shell script "shutdown -h now"
i get asked to authenticate, but when i do it comes up with an error saying that remote access isnt allowed, ive allowed it throught the sharing pane but with no luck.
using terms from application "System Events"
tell application "System Events" of machine theMach --"eppc://yourName:passw@local_ip"
tell (some application whose frontmost is true) -- or "SystemUIserver"
activate
display dialog "Hello"
end tell
end tell
end using terms from
I haven’t tried it yet (i’m gonna test it on my work today) but just for being on the save site
You have put the ‘Apple Events’ - ‘Sharing’ - ‘System Preferences’ of the remote machine to on, otherwise you can’t let work the remote applescripts.
I guess that’s the reason you get the “remote access isnt allowed” error.