{"id":205,"date":"2014-10-20T13:58:26","date_gmt":"2014-10-20T09:58:26","guid":{"rendered":"http:\/\/ustinych.net\/wordpress\/?p=205"},"modified":"2015-05-14T14:34:27","modified_gmt":"2015-05-14T11:34:27","slug":"getting-messages-to-automatically-reconnect","status":"publish","type":"post","link":"https:\/\/ustinych.net\/wordpress\/?p=205","title":{"rendered":"Getting Messages to automatically reconnect"},"content":{"rendered":"<p>I\u2019ve noticed a problem with Messages\u00a0for the last year or two: if your network drops, you stay Disconnected until you manually tell Messages\u00a0to log back in. That\u2019s pretty lame, my Comcast cable drops several times a day so I need something a little more robust than that. I found a workaround: use cron to do the work for you. Fire up a Terminal, run\u00a0<code>crontab -e<\/code>\u00a0and put this in it:<\/p>\n<pre>*\/5 * * * * osascript -e 'tell application \"System Events\" to if (processes whose name is \"Messages\") exists then tell application \"Messages\" to log in'\r\n<\/pre>\n<p>This uses AppleScript to tell Messages\u00a0to log in every 5 minutes. Now if the network drops, you\u2019ll only be disconnected a few minutes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve noticed a problem with Messages\u00a0for the last year or two: if your network drops, you stay Disconnected until you manually tell Messages\u00a0to log back in. That\u2019s pretty lame, my Comcast cable drops several times a day so I need something a little more robust than that. I found a workaround: use cron to do\u2026 <span class=\"read-more\"><a href=\"https:\/\/ustinych.net\/wordpress\/?p=205\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-mac-os-x"],"_links":{"self":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":2,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":207,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions\/207"}],"wp:attachment":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}