{"id":2027,"date":"2009-11-24T12:58:45","date_gmt":"2009-11-24T16:58:45","guid":{"rendered":"http:\/\/www.schollnick.net\/wordpress\/?p=2027"},"modified":"2009-11-24T12:58:52","modified_gmt":"2009-11-24T16:58:52","slug":"applescript-lock-screen-from-another-mac-on-lan","status":"publish","type":"post","link":"http:\/\/www.schollnick.net\/wordpress\/2009\/11\/applescript-lock-screen-from-another-mac-on-lan\/","title":{"rendered":"applescript &#8220;Lock Screen&#8221; from another mac on LAN"},"content":{"rendered":"<p>How can you lock your screen from another Macintosh?<\/p>\n<p>The following applescript will allow you to lock the screen, over the network, from any other macintosh.  Just keep in mind, &#8220;Remote Apple Events&#8221; will probably have to be turned on (System Preferences -> Sharing).<\/p>\n<pre>property ipNumber : 'Real IP address here' \nproperty userName : 'real username here' \nproperty pasword : 'real password entered here' \nset remMachine to 'eppc:\/\/' & userName & ':' & pasword & '@' & ipNumber \ntell application 'Finder' of machine remMachine to do shell script '\/System\/Library\/CoreServices\/Menu Extras\/User.menu\/Contents\/Resources\/CGSession -suspend'\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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, &#8220;Remote Apple Events&#8221; will probably have to be turned on (System Preferences -> Sharing). property ipNumber : &#8216;Real IP address here&#8217; property userName : &#8216;real <a class=\"read-more\" href=\"http:\/\/www.schollnick.net\/wordpress\/2009\/11\/applescript-lock-screen-from-another-mac-on-lan\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[12,5],"tags":[89,91,83],"_links":{"self":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts\/2027"}],"collection":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/comments?post=2027"}],"version-history":[{"count":0,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/posts\/2027\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/media?parent=2027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/categories?post=2027"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.schollnick.net\/wordpress\/wp-json\/wp\/v2\/tags?post=2027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->