{"action":"created","issue":{"url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/4","labels_url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/4/comments","events_url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/4/events","html_url":"https://github.com/wtfaremyinitials/osa-imessage/issues/4","id":126277992,"number":4,"title":"Previously working implementation (Late '15) now breaks.","user":{"login":"tomhardman0","id":9137745,"avatar_url":"https://avatars.githubusercontent.com/u/9137745?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhardman0","html_url":"https://github.com/tomhardman0","followers_url":"https://api.github.com/users/tomhardman0/followers","following_url":"https://api.github.com/users/tomhardman0/following{/other_user}","gists_url":"https://api.github.com/users/tomhardman0/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhardman0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhardman0/subscriptions","organizations_url":"https://api.github.com/users/tomhardman0/orgs","repos_url":"https://api.github.com/users/tomhardman0/repos","events_url":"https://api.github.com/users/tomhardman0/events{/privacy}","received_events_url":"https://api.github.com/users/tomhardman0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T21:19:06Z","updated_at":"2016-01-13T09:29:15Z","closed_at":null,"body":"Hi - I don't think you're maintaining this anymore but in case you are: I had this plugin working in Nov 2015 - no change has been made to my local implementation but it's stopped working sometime since then.\r\n\r\n```\r\n{ [Error: Command failed: /bin/sh -c osascript -l JavaScript -e 'var old = console.log; console.log = function () { Array.prototype.unshift.call(arguments, \"<brandonhorst:node-osa>\"); Array.prototype.push.call(arguments, \"</brandonhorst:node-osa>\"); old.apply(console, arguments); }; JSON.stringify((function (message, recipient) {        var Messages = Application('\\''Messages'\\'');        recipient = Messages.buddies.whose(recipient)[0];        Messages.send(message, { to: recipient });        return {            name:   recipient.name(),            handle: recipient.handle()        };    })(\"hi\",{\"name\":\"NUMBER_REPLACED\"}));'\r\n0:558: execution error: Error on line 1: Error: Can't get object. (-1728)\r\n]\r\n  killed: false,\r\n  code: 1,\r\n  signal: null,\r\n  cmd: '/bin/sh -c osascript -l JavaScript -e \\'var old = console.log; console.log = function () { Array.prototype.unshift.call(arguments, \"<brandonhorst:node-osa>\"); Array.prototype.push.call(arguments, \"</brandonhorst:node-osa>\"); old.apply(console, arguments); }; JSON.stringify((function (message, recipient) {        var Messages = Application(\\'\\\\\\'\\'Messages\\'\\\\\\'\\');        recipient = Messages.buddies.whose(recipient)[0];        Messages.send(message, { to: recipient });        return {            name:   recipient.name(),            handle: recipient.handle()        };    })(\"hi\",{\"name\":\"NUMBER_REPLACED\"}));\\'' }\r\n```\r\n\r\nI haven't had time to dig into the code but let me know if there's a solution - I'd happily submit a PR."},"comment":{"url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/comments/171229396","html_url":"https://github.com/wtfaremyinitials/osa-imessage/issues/4#issuecomment-171229396","issue_url":"https://api.github.com/repos/wtfaremyinitials/osa-imessage/issues/4","id":171229396,"user":{"login":"tomhardman0","id":9137745,"avatar_url":"https://avatars.githubusercontent.com/u/9137745?v=3","gravatar_id":"","url":"https://api.github.com/users/tomhardman0","html_url":"https://github.com/tomhardman0","followers_url":"https://api.github.com/users/tomhardman0/followers","following_url":"https://api.github.com/users/tomhardman0/following{/other_user}","gists_url":"https://api.github.com/users/tomhardman0/gists{/gist_id}","starred_url":"https://api.github.com/users/tomhardman0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomhardman0/subscriptions","organizations_url":"https://api.github.com/users/tomhardman0/orgs","repos_url":"https://api.github.com/users/tomhardman0/repos","events_url":"https://api.github.com/users/tomhardman0/events{/privacy}","received_events_url":"https://api.github.com/users/tomhardman0/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T09:29:15Z","updated_at":"2016-01-13T09:29:15Z","body":"No problem - I ended writing a [very simple cli](https://github.com/tomhardman0/imailer) or imessaging/sms instead.\r\n\r\nGood luck with your finals!"}}