{"id":6277,"date":"2012-10-04T21:25:45","date_gmt":"2012-10-05T02:25:45","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6277"},"modified":"2015-06-19T13:10:59","modified_gmt":"2015-06-19T17:10:59","slug":"aesendmessage-bug-in-mac-os-x-10-8-2","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/10\/04\/aesendmessage-bug-in-mac-os-x-10-8-2\/","title":{"rendered":"AESendMessage Bug in Mac OS X 10.8.2"},"content":{"rendered":"<p><a href=\"http:\/\/brian-webster.tumblr.com\/post\/32830692042\/a-workaround-for-aesendmessage-hanging-on-os-x-10-8-2\">Brian Webster<\/a>:<\/p>\r\n<blockquote cite=\"http:\/\/brian-webster.tumblr.com\/post\/32830692042\/a-workaround-for-aesendmessage-hanging-on-os-x-10-8-2\"><p>The basic outline of the problem is that sometimes a particular application will get into a state where any events sent to it using <code>AESendMessage<\/code> (or <code>AESend<\/code>, for that matter) would not be delivered to the target application, and <code>AESendMessage<\/code> would simply block until the timeout value was reached, then return an <code>errAETimeout<\/code> error code.<\/p><\/blockquote>\r\n<p>This affected his <a href=\"http:\/\/www.fatcatsoftware.com\/iplm\/\">iPhoto Library Manager<\/a> as well as e-mail clients such as <a href=\"http:\/\/blog.freron.com\/2012\/recipe-for-trouble-os-x-10-8-2-mailmate-and-spamsieve\/\">MailMate<\/a>, <a href=\"http:\/\/www.postbox-inc.com\">Postbox<\/a>, and <a href=\"http:\/\/gyazsquare.com\/gyazmail\/\">GyazMail<\/a> communicating with <a href=\"http:\/\/c-command.com\/spamsieve\">SpamSieve<\/a>. The bug can also affect <a href=\"https:\/\/getsatisfaction.com\/binaryage\/topics\/totalfinder_and_archive_utility_not_playing_nice\">TotalFinder<\/a> and applications that use the <a href=\"https:\/\/twitter.com\/devesine\/status\/253671019280232448\">ODBEditor<\/a> events.<\/p>\r\n<p>As a short-term fix, you can log out of your Mac or kill the <tt>appleeventsd<\/tt> process. Medium-term, the applications sending the events can be rewritten to use <code>typeKernelProcessID<\/code> rather than <code>typeSignature<\/code> or <code>typeApplicationBundleID<\/code> to specify the target application. Of course, we hope that Apple will eventually fix <a href=\"http:\/\/www.openradar.me\/12424662\">the bug<\/a>.<\/p>\r\n<p>Update (2012-10-05): This bug also seems to cause hangs at launch for applications using the Growl 1.3 SDK.<\/p>\r\n<p>Update (2013-03-16): The bug appears to be fixed in <a href=\"http:\/\/support.apple.com\/kb\/HT5612\">Mac OS X 10.8.3<\/a>.<\/p>\r\n<p>Update (2013-10-29): It looks like this bug may be back in Mac OS X 10.9 Mavericks.<\/p>","protected":false},"excerpt":{"rendered":"<p>Brian Webster: The basic outline of the problem is that sometimes a particular application will get into a state where any events sent to it using AESendMessage (or AESend, for that matter) would not be delivered to the target application, and AESendMessage would simply block until the timeout value was reached, then return an errAETimeout [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[159,131,1168,30,32,71,1227],"class_list":["post-6277","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-applescript","tag-bug","tag-iphoto-library-manager","tag-mac","tag-macapp","tag-programming","tag-top-posts"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6277"}],"version-history":[{"count":9,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6277\/revisions"}],"predecessor-version":[{"id":11008,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6277\/revisions\/11008"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}