How can you lock your screen from another Macintosh?
The following applescript will allow you to lock the screen, over the network, from any other macintosh. Just keep in mind, “Remote Apple Events” will probably have to be turned on (System Preferences -> Sharing).
property ipNumber : 'Real IP address here' property userName : 'real username here' property pasword : 'real password entered here' set remMachine to 'eppc://' & userName & ':' & pasword & '@' & ipNumber tell application 'Finder' of machine remMachine to do shell script '/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession -suspend'"
More from The Matrix Data Bank
- How to turn on & Off Time Machine from the terminal
- iPhone MMS hits US on September 25
- New from ImprovEveryWhere… — The Matrix Data Bank
- Supreme Commander 2 coming to the Mac — The Matrix Data Bank
- ignore the code » Virtual Keyboards on iPhone and Android — The Matrix Data Bank
The Matrix Data Bank Recommends
- mRemoteNG – A Remote Connection Manager on ‘roids (The IT Juggler)
No related posts.