{"id":23412,"date":"2014-03-07T02:00:00","date_gmt":"2014-03-06T17:00:00","guid":{"rendered":"http:\/\/hitoriblog.com\/?p=23412"},"modified":"2014-03-07T04:46:19","modified_gmt":"2014-03-06T19:46:19","slug":"growl%e3%81%ae%e7%9f%a5%e3%82%89%e3%82%8c%e3%81%96%e3%82%8b%e6%a9%9f%e8%83%bd%e3%80%8crules%e3%80%8d%e3%81%a7%e8%87%aa%e5%ae%85%e5%be%85%e6%a9%9f%e3%81%aemac%e3%82%92twitter%e3%81%8b%e3%82%89%e3%83%aa","status":"publish","type":"post","link":"http:\/\/hitoriblog.com\/?p=23412","title":{"rendered":"Growl\u306e\u77e5\u3089\u308c\u3056\u308b\u6a5f\u80fd\u300cRules\u300d\u3067\u81ea\u5b85\u5f85\u6a5f\u306eMac\u3092Twitter\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u3082\u304f\u3058<\/p><ul class=\"toc_list\"><li><a href=\"#GrowlRules\"><span class=\"toc_number toc_depth_1\">1<\/span> \u4f55\u304b\u9762\u767d\u3044\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u306aGrowl\u306eRules<\/a><\/li><li><a href=\"#AppleScript\"><span class=\"toc_number toc_depth_1\">2<\/span> \u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bAppleScript\u3092\u8a2d\u7f6e\u3059\u308b\u3068\u52d5\u4f5c\u3092\u958b\u59cb\u3059\u308b<\/a><ul><li><a href=\"#SPONSORED_LINK\"><span class=\"toc_number toc_depth_2\">2.1<\/span> SPONSORED LINK<\/a><\/li><\/ul><\/li><li><a href=\"#Rulesscptnotification\"><span class=\"toc_number toc_depth_1\">3<\/span> \u4f55\u3082\u3057\u306a\u3044Rules.scpt\u3068\u4eee\u5f15\u6570notification<\/a><\/li><li><a href=\"#RulesscptGrowl\"><span class=\"toc_number toc_depth_1\">4<\/span> Rules.scpt\u3067Growl\u306e\u8a2d\u5b9a\u3092\u5909\u66f4<\/a><\/li><li><a href=\"#Rulesscpt\"><span class=\"toc_number toc_depth_1\">5<\/span> Rules.scpt\u3067\u901a\u77e5\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046<\/a><\/li><li><a href=\"#Ruby_Python\"><span class=\"toc_number toc_depth_1\">6<\/span> Ruby \/ Python\u7b49\u306b\u5f15\u304d\u7d99\u3050<\/a><ul><li><a href=\"#Rulesscpt-2\"><span class=\"toc_number toc_depth_2\">6.1<\/span> Rules.scpt<\/a><\/li><li><a href=\"#testrb\"><span class=\"toc_number toc_depth_2\">6.2<\/span> test.rb<\/a><\/li><\/ul><\/li><li><a href=\"#MacTwitter\"><span class=\"toc_number toc_depth_1\">7<\/span> \u81ea\u5b85\u5f85\u6a5f\u306eMac\u3092Twitter\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b<\/a><\/li><\/ul><\/div>\n<h3><span id=\"GrowlRules\">\u4f55\u304b\u9762\u767d\u3044\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u306aGrowl\u306eRules<\/span><\/h3>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-031802.jpg\" alt=\"Skitched 20140307 031802\" title=\"skitched-20140307-031802.jpg\" border=\"0\" width=\"300\" height=\"71\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-031802.jpg\" alt=\"Skitched 20140307 031802\" title=\"skitched-20140307-031802.jpg\" border=\"0\" width=\"300\" height=\"71\" \/><\/noscript><\/p>\n<p>OS X\u306b\u901a\u77e5\u306e\u4ed5\u7d44\u307f\u3092\u8ffd\u52a0\u3059\u308bGrowl\u3002<\/p>\n<p><a href=\"https:\/\/itunes.apple.com\/jp\/app\/growl\/id467939042?mt=12&#038;uo=4&#038;at=10l4yK\" rel=\"nofollow\" target=\"_blank\"><img align=\"left\" hspace=\"6\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/a5.mzstatic.com\/us\/r30\/Purple\/v4\/0e\/95\/f5\/0e95f5db-4fef-8e57-24c3-d80846f972a5\/Growl.60x60-50.png\" width=\"75\" style=\"margin-right: 6px;\" \/><noscript><img align=\"left\" hspace=\"6\" src=\"http:\/\/a5.mzstatic.com\/us\/r30\/Purple\/v4\/0e\/95\/f5\/0e95f5db-4fef-8e57-24c3-d80846f972a5\/Growl.60x60-50.png\" width=\"75\" style=\"margin-right: 6px;\" \/><\/noscript><b>Growl<\/b> <img alt=\"App\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/ax.phobos.apple.com.edgesuite.net\/ja_jp\/images\/web\/linkmaker\/badge_macappstore-sm.gif\" style=\"vertical-align: text-bottom;\" \/><noscript><img alt=\"App\" src=\"http:\/\/ax.phobos.apple.com.edgesuite.net\/ja_jp\/images\/web\/linkmaker\/badge_macappstore-sm.gif\" style=\"vertical-align: text-bottom;\" \/><\/noscript><\/b><br \/>\n<\/a>\u30ab\u30c6\u30b4\u30ea: \u4ed5\u4e8b\u52b9\u7387\u5316<br \/>\n\u4fa1\u683c: &#65509;400<br clear=\"all\" \/><\/p>\n<p>OS X Mavericks\u306e\u4eca\u3067\u306f\u3001OS\u306b\u901a\u77e5\u306e\u4ed5\u7d44\u307f\u3001\u901a\u77e5\u30bb\u30f3\u30bf\u30fc\u304c\u6a19\u6e96\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u4ee5\u524d\u3088\u308a\u5f71\u304c\u8584\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001Growl\u306e\u65b9\u304c\u81ea\u7531\u5ea6\u304c\u9ad8\u304f\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304b\u3089\u3082\u611b\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Growl\u3073\u3044\u304d\u306e\u50d5\u304c\u6c17\u306b\u5165\u3063\u3066\u3044\u308b\u3001Rules\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u901a\u77e5\u306e\u8868\u793a\u76f4\u524d\u306bAppleScript\u3092\u5b9f\u884c\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3053\u3053\u306b\u3042\u308a\u307e\u3059\u3002Growl 2.1\u304b\u3089\u306e\u65b0\u6a5f\u80fd\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/growl.info\/documentation\/applescript-rules');\"  href=\"http:\/\/growl.info\/documentation\/applescript-rules\" target=\"_blank\" class=\"broken_link\"><img loading=\"lazy\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/capture.heartrails.com\/75x75\/shadow?http:\/\/growl.info\/documentation\/applescript-rules\" alt=\"\" width=\"75\" height=\"75\" \/><noscript><img loading=\"lazy\" class=\"alignleft\" align=\"left\" border=\"0\" src=\"http:\/\/capture.heartrails.com\/75x75\/shadow?http:\/\/growl.info\/documentation\/applescript-rules\" alt=\"\" width=\"75\" height=\"75\" \/><\/noscript><\/a><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/growl.info\/documentation\/applescript-rules');\" style=\"color:#0070C5;\"  href=\"http:\/\/growl.info\/documentation\/applescript-rules\" target=\"_blank\" class=\"broken_link\">Growl &#8211; AppleScript Rules Documentation for Growl<\/a><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/b.hatena.ne.jp\/entry\/http:\/\/growl.info\/documentation\/applescript-rules');\"  href=\"http:\/\/b.hatena.ne.jp\/entry\/http:\/\/growl.info\/documentation\/applescript-rules\" target=\"_blank\"><img src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/growl.info\/documentation\/applescript-rules\" alt=\"\" \/><noscript><img src=\"http:\/\/b.hatena.ne.jp\/entry\/image\/http:\/\/growl.info\/documentation\/applescript-rules\" alt=\"\" \/><\/noscript><\/a><br style=\"clear:both;\" \/><\/p>\n<p>\u8a18\u8f09\u304c\u3042\u308a\u307e\u305b\u3093\u304c\u3001OS X 10.8\u4ee5\u964d\u5bfe\u5fdc\u306e\u3088\u3046\u3067\u3059\u306d\u3002OS X 10.7\u3067\u306f\u3001Rules\u306f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u4f3c\u305f\u6a5f\u80fd\u306bScriptAction\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u3069\u3046\u3082\u4e0d\u52d5\u4f5c\u306e\u6a5f\u80fd\u306e\u3088\u3046\u3067\u3059\u3002\u5c11\u306a\u304f\u3068\u3082OS X 10.9\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff08\u7d9a\u304d\u306f[Read More]\u304b\u3089\uff09<!--more--><\/p>\n<h3><span id=\"AppleScript\">\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bAppleScript\u3092\u8a2d\u7f6e\u3059\u308b\u3068\u52d5\u4f5c\u3092\u958b\u59cb\u3059\u308b<\/span><\/h3>\n<p>AppleScript\u30a8\u30c7\u30a3\u30bf\u3067Rules.scpt\u3092\u4f5c\u6210\u3002\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u30d1\u30b9\u306b\u8a2d\u7f6e\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/Users\/\u30e6\u30fc\u30b6\u30fc\u540d\/Library\/Application Scripts\/com.Growl.GrowlHelperApp\/Rules.scpt\n<\/pre>\n<p>Growl\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001Rules\u3092\u4f7f\u3046\u304b\u3069\u3046\u304b\u306e\u554f\u3044\u5408\u308f\u305b\u304c\u5165\u308a\u3001\u53d7\u3051\u5165\u308c\u308c\u3070Rules\u304c\u52d5\u4f5c\u3092\u958b\u59cb\u3057\u3001\u901a\u77e5\u3092\u8868\u793a\u3059\u308b\u76f4\u524d\u306b\u3001\u6bce\u56deRules.scpt\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u96a0\u3057\u6a5f\u80fd\u306e\u3088\u3046\u306a\u8da3\u304c\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3044\u3063\u305f\u3093Rules.scpt\u306e\u5b58\u5728\u304c\u8a8d\u8b58\u3055\u308c\u308b\u3068\u3001Growl\u306e\u300c\u74b0\u5883\u8a2d\u5b9a\uff1e\u4e00\u822c\u300d\u306b\u300cUse Rules\u300d\u3068\u3044\u3046\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u51fa\u73fe\u3059\u308b\u306e\u3067\u3001Rules\u306e\u4f7f\u7528\u3092\u4e2d\u6b62\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u3053\u3053\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u5916\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-044801.jpg\" alt=\"Skitched 20140306 044801\" title=\"skitched-20140306-044801.jpg\" border=\"0\" width=\"500\" height=\"376\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-044801.jpg\" alt=\"Skitched 20140306 044801\" title=\"skitched-20140306-044801.jpg\" border=\"0\" width=\"500\" height=\"376\" \/><\/noscript><\/p>\n<h4 style=\"font-size:13px\"><span id=\"SPONSORED_LINK\">SPONSORED LINK<\/span><\/h4>\n<div align=\"center\">\n<script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-4621692780515356\";\n\/* 336x280, \u4f5c\u6210\u6e08\u307f 11\/04\/09 *\/\ngoogle_ad_slot = \"8580041928\";\ngoogle_ad_width = 336;\ngoogle_ad_height = 280;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script>\n<\/div>\n<h3><span id=\"Rulesscptnotification\">\u4f55\u3082\u3057\u306a\u3044Rules.scpt\u3068\u4eee\u5f15\u6570notification<\/span><\/h3>\n<p>\u4f55\u3082\u3057\u306a\u3044Rules.scpt\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30bf\u30fc\u304cAppleScript\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u5909\u306a\u30cf\u30a4\u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u3067\u3059\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\nusing terms from application \"Growl\"\n   on evaluate notification with notification\n      --Rules go in here\n      --Ultimately return what you want Growl to do with the notification\n   end evaluate notification\nend using terms from\n<\/pre>\n<p>Growl\u5074\u304b\u3089\u3001\u4eee\u5f15\u6570 notification \u3067\u901a\u77e5\u60c5\u5831\u304c\u6e21\u3055\u308c\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>notification\u306e\u578b\u306fGrowlNotification\u3002GrowlNotification\u306e\u6301\u3064\u30d7\u30ed\u30d1\u30c6\u30a3\u306fGrowl\u306eAppleScript\u7528\u8a9e\u8aac\u660e\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u8868\u306b\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<style>\n\/* \u30c6\u30fc\u30d6\u30eb\u5168\u4f53 *\/\ntable.table-01 {\n\twidth: 100%;\n\tborder: 1px #888888 solid;\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}<\/p>\n<p>\/* \u30d8\u30c3\u30c0\u30fc\u884c *\/\ntable.table-01 th {\n\tpadding: 5px;\n\tborder: 1px #888888 solid;\n\tborder-width: 0 1px 1px 1px;\n\t\/* \u30d8\u30c3\u30c0\u30fc\u306e\u80cc\u666f\u8272 *\/\n\tbackground: #bbbbbb;\n\tfont-weight: bold;\n\tline-height: 120%;\n\ttext-align: center;\n}<\/p>\n<p>\/* \u901a\u5e38\u884c *\/\ntable.table-01 td {\n\tpadding: 5px;\n\tborder: 1px #888888 solid;\n\tborder-width: 0 0 1px 1px;\n\tbackground: #ffffff;\n\t\/* text-align: center; *\/\n}<\/p>\n<\/style>\n<table class=\"table-01\" border=\"1\" width=\"100%\">\n<tr>\n<th>Property<\/th>\n<th>Access<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>app name<\/td>\n<td>get\/set<\/td>\n<td>unicode text<\/td>\n<td>The application name<\/td>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>get\/set<\/td>\n<td>unicode text<\/td>\n<td>The computer from which the note came, localhost for the local machine<\/td>\n<\/tr>\n<tr>\n<td>note description<\/td>\n<td>get\/set<\/td>\n<td>unicode text<\/td>\n<td>The note&#8217;s main text<\/td>\n<\/tr>\n<tr>\n<td>note icon<\/td>\n<td>get\/set<\/td>\n<td>Image<\/td>\n<td>The icon the note will display with<\/td>\n<\/tr>\n<tr>\n<td>note title<\/td>\n<td>get\/set<\/td>\n<td>unicode text<\/td>\n<td>The note&#8217;s title<\/td>\n<\/tr>\n<tr>\n<td>note type<\/td>\n<td>get\/set<\/td>\n<td>unicode text<\/td>\n<td>The underlying note type<\/td>\n<\/tr>\n<tr>\n<td>priority<\/td>\n<td>get\/set<\/td>\n<td>GrowlPriority<\/td>\n<td>The priority of the notification<\/td>\n<\/tr>\n<tr>\n<td>sticky<\/td>\n<td>get\/set<\/td>\n<td>boolean<\/td>\n<td>Whether the notification will be sticky<\/td>\n<\/tr>\n<\/table>\n<p>\u516c\u5f0fTwitter\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067Mention\u3092\u53d7\u3051\u53d6\u3063\u305f\u3068\u304d\u306f\u3001notification\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<table class=\"table-01\" border=\"1\" width=\"100%\">\n<tr>\n<th>Property<\/th>\n<th>Value<\/th>\n<\/tr>\n<tr>\n<td>app name<\/td>\n<td>Twitter<\/td>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>localhost<\/td>\n<\/tr>\n<tr>\n<td>note description<\/td>\n<td>@hitoriblog \u5148\u8f29\u306f\u30a2\u30db\u3067\u3059\u306d<\/td>\n<\/tr>\n<tr>\n<td>note title<\/td>\n<td>hitoriblog_test\u304b\u3089\u306e@\u30c4\u30a4\u30fc\u30c8<\/td>\n<\/tr>\n<\/table>\n<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK');\"  href=\"https:\/\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK\" target=\"_blank\" rel=\"nofollow\" class=\"broken_link\"><img width=\"100\" class=\"alignleft\" align=\"left\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/a3.mzstatic.com\/us\/r30\/Purple\/v4\/93\/38\/e7\/9338e79f-a42f-4ba7-0866-f4f9edd42d65\/icon.512x512-75.png\" style=\"border-radius: 20px 20px 20px 20px;-moz-border-radius: 20px 20px 20px 20px;-webkit-border-radius: 20px 20px 20px 20px;box-shadow: 1px 4px 6px 1px #999999;-moz-box-shadow: 1px 4px 6px 1px #999999;-webkit-box-shadow: 1px 4px 6px 1px #999999;margin: -5px 15px 1px 5px;\"><noscript><img width=\"100\" class=\"alignleft\" align=\"left\" src=\"http:\/\/a3.mzstatic.com\/us\/r30\/Purple\/v4\/93\/38\/e7\/9338e79f-a42f-4ba7-0866-f4f9edd42d65\/icon.512x512-75.png\" style=\"border-radius: 20px 20px 20px 20px;-moz-border-radius: 20px 20px 20px 20px;-webkit-border-radius: 20px 20px 20px 20px;box-shadow: 1px 4px 6px 1px #999999;-moz-box-shadow: 1px 4px 6px 1px #999999;-webkit-box-shadow: 1px 4px 6px 1px #999999;margin: -5px 15px 1px 5px;\"><\/noscript><\/a><strong> <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK');\"  href=\"https:\/\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK\" target=\"_blank\" rel=\"nofollow\" class=\"broken_link\">Twitter<\/a><\/strong><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK');\"  href=\"https:\/\/itunes.apple.com\/jp\/app\/twitter\/id409789998?mt=12&amp;uo=4&amp;at=10l4yK\" target=\"_blank\" rel=\"nofollow\" class=\"broken_link\"><img src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/viewinitunes_jp.png\" style=\"vertical-align:bottom;\" width=\"90\" alt=\"App\"><noscript><img src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/viewinitunes_jp.png\" style=\"vertical-align:bottom;\" width=\"90\" alt=\"App\"><\/noscript><\/a><br \/> \u30ab\u30c6\u30b4\u30ea: Social Networking<br \/> \u8ca9\u58f2\u5143: Twitter, Inc.\uff08\u30b5\u30a4\u30ba: 3.9 MB\uff09<br \/> \u5168\u3066\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8a55\u4fa1: <img loading=\"lazy\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><noscript><img loading=\"lazy\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><\/noscript><img loading=\"lazy\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><noscript><img loading=\"lazy\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><\/noscript><img loading=\"lazy\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><noscript><img loading=\"lazy\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><\/noscript><img loading=\"lazy\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><noscript><img loading=\"lazy\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/itunes\/rating_star.png\" height=\"11px\" width=\"11px\" \/><\/noscript>\uff08667  \u4ef6\u306e\u8a55\u4fa1\uff09<br \/> <br style=\"clear: both;\"><\/p>\n<p>\u901a\u77e5\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3073\u306b\u3001\u901a\u77e5\u5185\u5bb9\u3092AppleScript\u3067\u8a55\u4fa1\u3059\u308b\u6a5f\u4f1a\u3092\u4e0e\u3048\u3089\u308c\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3><span id=\"RulesscptGrowl\">Rules.scpt\u3067Growl\u306e\u8a2d\u5b9a\u3092\u5909\u66f4<\/span><\/h3>\n<p>\u8fd4\u308a\u5024\u3068\u3057\u3066\u6c7a\u307e\u3063\u305f\u30ec\u30b3\u30fc\u30c9\uff08Ruby\u3067\u8a00\u3046\u30cf\u30c3\u30b7\u30e5\uff09\u3001RuleResult\u3092\u8fd4\u3059\u3068\u3001Growl\u306e\u52d5\u4f5c\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002RuleResult\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001Growl\u306eAppleScript\u7528\u8a9e\u8aac\u660e\u306b\u8a73\u7d30\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-045357.jpg\" alt=\"Skitched 20140306 045357\" title=\"skitched-20140306-045357.jpg\" border=\"0\" width=\"500\" height=\"432\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-045357.jpg\" alt=\"Skitched 20140306 045357\" title=\"skitched-20140306-045357.jpg\" border=\"0\" width=\"500\" height=\"432\" \/><\/noscript><\/p>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u4eee\u5f15\u6570notification\u306enote description\u306e\u4e2d\u8eab\u3092\u898b\u3066\u3001\u300cGrowlMac\u300d\u304c\u542b\u307e\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002ignoring case\u69cb\u6587\u3067\u304f\u304f\u3063\u3066\u3042\u308b\u306e\u3067\u3001\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306b\u304a\u3044\u3066\u306f\u3001\u5927\u6587\u5b57\u3001\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u307e\u305b\u3093\u304c\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\nusing terms from application \"Growl\"\n\ton evaluate notification with notification\n\t\tignoring case\n\t\t\tif notification's note description contains \"GrowlMac\" then\n\t\t\t\treturn {display:\"Music Video\"}\n\t\t\tend if\n\t\tend ignoring\n\tend evaluate notification\nend using terms from\n<\/pre>\n<p>if\u6587\u304c\u6210\u7acb\u3057\u305f\u3068\u304d\u306fRuleResult\u306e\u30ec\u30b3\u30fc\u30c9\u300c{display:&#8221;Music Video&#8221;}\u300d\u3092\u8fd4\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u4ee5\u964d\u306e\u901a\u77e5\u306e\u8868\u793a\u30b9\u30bf\u30a4\u30eb\u304c\u300cMusic Video\u300d\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30d1\u30c6\u30a3display\u306e\u4e2d\u8eab\u306b\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f\u3001\u8868\u793a\u30b9\u30bf\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u306b\u51fa\u3066\u304f\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-134717.jpg\" alt=\"Skitched 20140306 134717\" title=\"skitched-20140306-134717.jpg\" border=\"0\" width=\"220\" height=\"416\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140306-134717.jpg\" alt=\"Skitched 20140306 134717\" title=\"skitched-20140306-134717.jpg\" border=\"0\" width=\"220\" height=\"416\" \/><\/noscript><\/p>\n<p>RuleResult\u3067\u8907\u6570\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300c{display:none, actions:&#8221;Speech&#8221;}\u300d\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u30ec\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<h3><span id=\"Rulesscpt\">Rules.scpt\u3067\u901a\u77e5\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046<\/span><\/h3>\n<p>Rules.scpt\u304b\u3089\u300c{notification return:notification}\u300d\u3068\u3044\u3063\u305f\u30ec\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u3068\u3001\u901a\u77e5\u306e\u5185\u5bb9\u3092\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u4eee\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u305fnotification\u306edescription\uff08\u901a\u77e5\u672c\u6587\uff09\u306b\u300c@Growl\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u5224\u5b9a\u3002\u542b\u307e\u308c\u3066\u3044\u305f\u3089\u3001\u305d\u308c\u3092\u300c@GrowlMac\u300d\u306b\u7f6e\u63db\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u4eee\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u305fnotification\u306edescription\u3092\u66f8\u304d\u63db\u3048\u3066\u3001\u300c{notification return:notification}\u300d\u3092\u8fd4\u308a\u5024\u306b\u3057\u3066\u3044\u307e\u3059\u306d\u3002AppleScript\u306f\u6a19\u6e96\u3067\u5099\u3048\u308b\u6587\u5b57\u5217\u64cd\u4f5c\u306e\u305f\u3081\u306e\u95a2\u6570\u304c\u30a6\u30eb\u30c8\u30e9\u8ca7\u5f31\uff08!\uff09\u306a\u306e\u3067\u3001\u3053\u3053\u3067\u4f75\u305b\u3066\u7f6e\u63db\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\non replace_chars(this_text, search_string, replacement_string)\n   set AppleScript's text item delimiters to the search_string\n   set the item_list to every text item of this_text\n   set AppleScript's text item delimiters to the replacement_string\n   set this_text to the item_list as string\n   set AppleScript's text item delimiters to \"\"\n   return this_text\nend replace_chars\n\nusing terms from application \"Growl\"\n   on evaluate notification with notification\n      ignoring case\n         set description to notification's note description\n         if description contains \"@Growl\" then\n            set notification's note description to replace_chars(description, \"@Growl\", \"@GrowlMac\")\n            return {notification return:notification}\n         end if\n      end ignoring\n   end evaluate notification\nend using terms from\n<\/pre>\n<h3><span id=\"Ruby_Python\">Ruby \/ Python\u7b49\u306b\u5f15\u304d\u7d99\u3050<\/span><\/h3>\n<p>\u51e6\u7406\u3092Ruby \/ Python\u306a\u3069\u306b\u5f15\u304d\u7d99\u3050\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>AppleScript\u306f\u6587\u5b57\u5217\u306e\u64cd\u4f5c\u304c\u82e6\u624b\uff08\u82e6\u624b\u306a\u3053\u3068\u3070\u3063\u304b\u308a\u3060\u3051\u3069\u2026\u2026\uff09\u306a\u306e\u3067\u3001Ruby \/ Python\u3067\u51e6\u7406\u3057\u305f\u65b9\u304c\u3044\u3044\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>Ruby \/ Python\u306b\u5f15\u304d\u7d99\u304e\u3067\u304d\u308c\u3070\u3001\u6b63\u898f\u8868\u73fe\u30de\u30c3\u30c1\u30f3\u30b0\u3092\u542b\u3080\u6587\u5b57\u5217\u306e\u51e6\u7406\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f7f\u3063\u305f\u51e6\u7406\u306a\u3069\u3067\u3001\u3067\u304d\u308b\u3053\u3068\u304c\u98db\u8e8d\u7684\u306b\u5897\u3048\u307e\u3059\u3002<\/p>\n<p>AppleScript\u306fAppleScript\u3067\u3001\u307b\u304b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u5f79\u3059\u308b\u306e\u304c\u5f97\u610f\u3067\u3059\u304c\u3001<a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/macwiki.sourceforge.jp\/wiki\/index.php\/\u30b3\u30de\u30f3\u30c9\/osascript');\"  href=\"http:\/\/macwiki.sourceforge.jp\/wiki\/index.php\/\u30b3\u30de\u30f3\u30c9\/osascript\" target=\"_blank\" rel=\"nofollow\">osascript<\/a>\u30b3\u30de\u30f3\u30c9\u3067Ruby \/ Python\u304b\u3089\u540c\u7b49\u306e\u3053\u3068\u3092\u3059\u308b\u306e\u3082\u96e3\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eee\u5f15\u6570notification\u306e\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u3069\u3046\u5f15\u304d\u7d99\u3050\u304b\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u74b0\u5883\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u624b\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-030125.jpg\" alt=\"Skitched 20140307 030125\" title=\"skitched-20140307-030125.jpg\" border=\"0\" width=\"500\" height=\"240\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-030125.jpg\" alt=\"Skitched 20140307 030125\" title=\"skitched-20140307-030125.jpg\" border=\"0\" width=\"500\" height=\"240\" \/><\/noscript><\/p>\n<p>\u4e3b\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3057\u305f\u5f8c\u3067\u3001Rules.scpt\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u308c\u3066\u3044\u308btest.rb\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4><span id=\"Rulesscpt-2\">Rules.scpt<\/span><\/h4>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\non rulesdir()\n\ttell application \"System Events\"\n\t\treturn quoted form of (POSIX path of (home folder) & \"\/Library\/Application Scripts\/com.Growl.GrowlHelperApp\/\")\n\tend tell\nend rulesdir\n\nusing terms from application \"Growl\"\n\ton evaluate notification with notification\n\t\tdo shell script \"\nexport GROWL_NOTE_DESCRIPTION=\" & quoted form of notification's note description & \";\nexport GROWL_HOST=\" & quoted form of notification's host & \";\nexport GROWL_APP_NAME=\" & quoted form of notification's app name & \";\nexport GROWL_NOTE_TITLE=\" & quoted form of notification's note title & \";\n\/usr\/bin\/ruby \" & rulesdir() & \"test.rb\"\n\tend evaluate notification\nend using terms from\n<\/pre>\n<ul>\n<li><strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong>: <a onclick=\"javascript:pageTracker._trackPageview('\/downloads\/wp-content\/uploads\/2014\/03\/Rules.scpt_.zip');\"  href=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/Rules.scpt_.zip\" title=\"Rules.scpt.zip\" alt=\"Rules scpt\">Rules.scpt.zip<\/a><\/li>\n<\/ul>\n<h4><span id=\"testrb\">test.rb<\/span><\/h4>\n<p>Rules.scpt\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u308btest.rb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u74b0\u5883\u5909\u6570\u3092\u53c2\u7167\u3057\u3066\u3001Rules.scpt\u304b\u3089\u5f15\u304d\u7d99\u3044\u3060\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e2d\u8eab\u3092\u898b\u3066\u4f3c\u308b\u306a\u308a\u713c\u304f\u306a\u308a\u3044\u308d\u3093\u306a\u3053\u3068\u3092\u3059\u308c\u3070\u3088\u3044\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001app name\u304c\u300cTwitter\u300d\u3067\u3001\u306a\u304a\u304b\u3064note title\u304c\u300chitoriblog\u304b\u3089\u306e@\u30c4\u30a4\u30fc\u30c8\u300d\u3060\u3063\u305f\u3089\u4f55\u304b\u3092\u3059\u308b\u3001\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\n#!\/usr\/bin\/ruby\n# -*- coding: utf-8 -*-\n$KCODE = 'u'\n\nrequire 'kconv'\n\nhost = ENV['GROWL_HOST']\napp_name = ENV['GROWL_APP_NAME'].toutf8\nnote_title = ENV['GROWL_NOTE_TITLE'].toutf8\nnote_description = ENV['GROWL_NOTE_DESCRIPTION'].toutf8\n\n# Twitter\u30a2\u30d7\u30ea\u3067 @hitoriblog \u304b\u3089\u306e\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u901a\u77e5\u304c\u6765\u305f\u3089\nif app_name == \"Twitter\" && note_title == \"hitoriblog\u304b\u3089\u306e@\u30c4\u30a4\u30fc\u30c8\"\n  # \u4f55\u304b\u3059\u308b\nend\n<\/pre>\n<p>\u65e5\u672c\u8a9e\u304c\u542b\u307e\u308c\u308b\u5834\u5408\u306f\u3001\u4e8b\u524d\u306bUTF-8\u306b\u5909\u63db\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u30c0\u30e1\u306a\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n<p>Python\u306e\u5834\u5408\u306f\u3001\u74b0\u5883\u5909\u6570\u306e\u53c2\u7167\u306f\u3001 os.environ[&#8216;GROWL_APP_NAME&#8217;] \u3068\u3044\u3063\u305f\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<h3><span id=\"MacTwitter\">\u81ea\u5b85\u5f85\u6a5f\u306eMac\u3092Twitter\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b<\/span><\/h3>\n<p><img loading=\"lazy\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-035803.jpg\" alt=\"Skitched 20140307 035803\" title=\"skitched-20140307-035803.jpg\" border=\"0\" width=\"500\" height=\"478\" \/><noscript><img loading=\"lazy\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-035803.jpg\" alt=\"Skitched 20140307 035803\" title=\"skitched-20140307-035803.jpg\" border=\"0\" width=\"500\" height=\"478\" \/><\/noscript><\/p>\n<p>\u81ea\u5b85\u3067Mac\u3092\u8d77\u52d5\u3055\u305b\u3063\u3071\u306a\u3057\u306b\u3057\u3066\u304a\u304d\u3001Growl\u306b\u524d\u9805\u3067\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306aRules.scpt\u3068test.rb\u3092\u4ed5\u8fbc\u3093\u3067\u304a\u304f\u3002<\/p>\n<p>\u516c\u5f0fTwitter\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u8d77\u52d5\u3001bot\u7528\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<p><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-031622.jpg\" alt=\"Skitched 20140307 031622\" title=\"skitched-20140307-031622.jpg\" border=\"0\" width=\"364\" height=\"428\" \/><noscript><img loading=\"lazy\" style=\"border: 1px solid #999; display:block; margin-left:auto; margin-right:auto;\" src=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/skitched-20140307-031622.jpg\" alt=\"Skitched 20140307 031622\" title=\"skitched-20140307-031622.jpg\" border=\"0\" width=\"364\" height=\"428\" \/><\/noscript><\/p>\n<p>\u3042\u3068\u306f\u3001\u901a\u77e5\u306e\u672c\u6587\u3067\u3042\u308bnote description\u3092\u547d\u4ee4\u6587\u3068\u898b\u7acb\u3066\u3001\u547d\u4ee4\u306e\u5185\u5bb9\u306b\u5fdc\u3058\u3066\u4f55\u304b\u3092\u3055\u305b\u308b\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\n#!\/usr\/bin\/ruby\n# -*- coding: utf-8 -*-\n$KCODE = 'u'\n\nrequire 'kconv'\n\nmy_master = \"@hitoriblog\"\nmy_account = \"@hitoriblog_test\"\n\nhost = ENV['GROWL_HOST']\napp_name = ENV['GROWL_APP_NAME'].toutf8\nnote_title = ENV['GROWL_NOTE_TITLE'].toutf8\nnote_description = ENV['GROWL_NOTE_DESCRIPTION'].toutf8\n\n# Twitter\u30a2\u30d7\u30ea\u3067 @hitoriblog \u304b\u3089\u306e\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u901a\u77e5\u304c\u6765\u305f\u3089\nif app_name == \"Twitter\" && note_title == \"hitoriblog\u304b\u3089\u306e@\u30c4\u30a4\u30fc\u30c8\"\n  # tweet\u95a2\u6570\u306f\u5225\u9014\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\n  case note_description\n  when \"#{my_account} \u30a2\u30c3\u30d7\u30bf\u30a4\u30e0\u6559\u3048\u308c\" then\n    tweet(\"#{my_master} \" + `uptime` + \"\u30c7\u30b9\uff01\")\n  when \"#{my_account} \u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u7387\u6559\u3048\u308c\" then\n    tweet(\"#{my_master} \" + `df | awk '\/disk0s2\/{print $8}'` + \"\u30c7\u30b9\uff01\")\n  else\n    tweet(\"#{my_master} \u547d\u4ee4\u304c\u5206\u304b\u3089\u306a\u3044\u30c7\u30b9\uff01\")\n  end\nend\n<\/pre>\n<ul>\n<li><strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong>:<a onclick=\"javascript:pageTracker._trackPageview('\/downloads\/wp-content\/uploads\/2014\/03\/test.rb_.zip');\"  href=\"http:\/\/hitoriblog.com\/wp-content\/uploads\/2014\/03\/test.rb_.zip\" title=\"test.rb.zip\" alt=\"Test rb\">test.rb.zip<\/a><\/li>\n<\/ul>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u3057\u3066\u304a\u304f\u3068\u3001bot\u7528\u30a2\u30ab\u30a6\u30f3\u30c8\u3078\u306e\u30e1\u30f3\u30b7\u30e7\u30f3\u3067\u3001Twitter\u7d4c\u7531\u3067\u3069\u3053\u304b\u3089\u3067\u3082\u81ea\u5b85\u306eMac\u306b\u4f55\u304b\u3092\u3055\u305b\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>bot\u7528\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u304a\u304f\u306e\u306f\u3001\u516c\u5f0fTwitter\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u81ea\u5206\u304b\u3089\u81ea\u5206\u3078\u306e\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u5834\u5408\u3001\u901a\u77e5\u3092\u51fa\u3057\u3066\u304f\u308c\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u4e00\u4f8b\u306b\u3059\u304e\u307e\u305b\u3093\u304c\u3001Growl\u306fRules\u3092\u4f7f\u3046\u3068\u6d3b\u7528\u306e\u9053\u304c\u5e83\u304c\u308a\u307e\u3059\u306d\u3002\u904a\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/itunes.apple.com\/jp\/app\/growl\/id467939042?mt=12&#038;uo=4&#038;at=10l4yK\" rel=\"nofollow\" target=\"_blank\"><img align=\"left\" hspace=\"6\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/a5.mzstatic.com\/us\/r30\/Purple\/v4\/0e\/95\/f5\/0e95f5db-4fef-8e57-24c3-d80846f972a5\/Growl.60x60-50.png\" width=\"75\" style=\"margin-right: 6px;\" \/><noscript><img align=\"left\" hspace=\"6\" src=\"http:\/\/a5.mzstatic.com\/us\/r30\/Purple\/v4\/0e\/95\/f5\/0e95f5db-4fef-8e57-24c3-d80846f972a5\/Growl.60x60-50.png\" width=\"75\" style=\"margin-right: 6px;\" \/><\/noscript><b>Growl<\/b> <img alt=\"App\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"http:\/\/ax.phobos.apple.com.edgesuite.net\/ja_jp\/images\/web\/linkmaker\/badge_macappstore-sm.gif\" style=\"vertical-align: text-bottom;\" \/><noscript><img alt=\"App\" src=\"http:\/\/ax.phobos.apple.com.edgesuite.net\/ja_jp\/images\/web\/linkmaker\/badge_macappstore-sm.gif\" style=\"vertical-align: text-bottom;\" \/><\/noscript><\/b><br \/>\n<\/a>\u30ab\u30c6\u30b4\u30ea: \u4ed5\u4e8b\u52b9\u7387\u5316<br \/>\n\u4fa1\u683c: &#65509;400<br clear=\"all\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u304b\u9762\u767d\u3044\u3053\u3068\u304c\u3067\u304d\u305d\u3046\u306aGrowl\u306eRules OS X\u306b\u901a\u77e5\u306e\u4ed5\u7d44\u307f\u3092\u8ffd\u52a0\u3059 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":32047,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[28,96,12,101,24,17],"tags":[],"jetpack_featured_media_url":"http:\/\/hitoriblog.com\/wp-content\/uploads\/2015\/10\/skitched-20140307-031802.jpg","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6Z3gA-65C","_links":{"self":[{"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/posts\/23412"}],"collection":[{"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23412"}],"version-history":[{"count":0,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/posts\/23412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=\/wp\/v2\/media\/32047"}],"wp:attachment":[{"href":"http:\/\/hitoriblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23412"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hitoriblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}