{"id":1386,"date":"2023-02-05T00:55:43","date_gmt":"2023-02-04T15:55:43","guid":{"rendered":"https:\/\/mowareblog.net\/3rd\/?p=1386"},"modified":"2023-02-05T00:55:43","modified_gmt":"2023-02-04T15:55:43","slug":"macos-%e3%81%8b%e3%81%aa%e3%82%ad%e3%83%bc2%e5%9b%9e%e6%8a%bc%e3%81%97%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%a4%89%e6%8f%9b%e5%90%8c%e7%ad%89%e6%a9%9f%e8%83%bd%e3%82%92apple","status":"publish","type":"post","link":"https:\/\/mowareblog.net\/3rd\/2023\/02\/1386\/macos-%e3%81%8b%e3%81%aa%e3%82%ad%e3%83%bc2%e5%9b%9e%e6%8a%bc%e3%81%97%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%a4%89%e6%8f%9b%e5%90%8c%e7%ad%89%e6%a9%9f%e8%83%bd%e3%82%92apple\/","title":{"rendered":"\u00a0[MacOS] \u201c\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u3067\u65e5\u672c\u8a9e\u5909\u63db\u201d\u540c\u7b49\u6a5f\u80fd\u3092AppleScript\u3067\u5b9f\u88c5 Monterey\u3067\u3082\u52d5\u4f5c"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">[M1 Mac, Monterey 12.6.3]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Monterey\u4ee5\u964d\u3067\u306f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u304b\u3089\u306e\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u65e5\u672c\u8a9e\u5909\u63db\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001\u81ea\u88fd\u306eAppleScript\u3092cmd + opt + z\u306b\u5272\u308a\u5f53\u3066\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vantura\u3067\u306f\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001Monterey\u3067\u306f\u4e00\u5fdc\u52d5\u304f\u306e\u3067\u30db\u30c3\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-moware\u306e\u30d6\u30ed\u30b0-3rd wp-block-embed-moware\u306e\u30d6\u30ed\u30b0-3rd\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"e1Kx6KmUnz\"><a href=\"https:\/\/mowareblog.net\/3rd\/2022\/11\/1329\/macos-%e3%81%8b%e3%81%aa%e3%82%ad%e3%83%bc2%e5%9b%9e%e6%8a%bc%e3%81%97%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%a4%89%e6%8f%9b%e6%a9%9f%e8%83%bd%e3%82%92applescript%e3%81%a7\/\">\u00a0[MacOS] \u201c\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u3067\u65e5\u672c\u8a9e\u5909\u63db\u201d\u540c\u7b49\u6a5f\u80fd\u3092AppleScript\u3067\u5b9f\u88c5<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u00a0[MacOS] \u201c\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u3067\u65e5\u672c\u8a9e\u5909\u63db\u201d\u540c\u7b49\u6a5f\u80fd\u3092AppleScript\u3067\u5b9f\u88c5&#8221; &#8212; moware\u306e\u30d6\u30ed\u30b0 3rd\" src=\"https:\/\/mowareblog.net\/3rd\/2022\/11\/1329\/macos-%e3%81%8b%e3%81%aa%e3%82%ad%e3%83%bc2%e5%9b%9e%e6%8a%bc%e3%81%97%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%a4%89%e6%8f%9b%e6%a9%9f%e8%83%bd%e3%82%92applescript%e3%81%a7\/embed\/#?secret=65NtAlT5qQ#?secret=e1Kx6KmUnz\" data-secret=\"e1Kx6KmUnz\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-file=\"LatinToKanji.applescript\" data-lang=\"JavaScript\"><code>use AppleScript version &quot;2.5&quot; --  (10.12) or later\nuse framework &quot;Foundation&quot;\nuse scripting additions\n\nproperty NSString : a reference to current application&#39;s NSString\nproperty NSStringTransformLatinToHiragana : a reference to current application&#39;s NSStringTransformLatinToHiragana\n\nselectString()\n\nset latin to the clipboard\n\nset hiragana to alphabetToHiragana(latin)\n\nset the clipboard to hiragana\n\npasteString()\n\nhenkan()\n\non selectString()\n    tell current application\n        tell application &quot;System Events&quot;\n            keystroke &quot;ac&quot; using {command down}\n        end tell\n    end tell\nend selectString\n\non pasteString()\n    tell current application\n        tell application &quot;System Events&quot;\n            keystroke &quot;v&quot; using {command down}\n        end tell\n    end tell\nend pasteString\n\non alphabetToHiragana(aStr)\n\tset aString to NSString&#39;s stringWithString:aStr\n\treturn (aString&#39;s stringByApplyingTransform:(NSStringTransformLatinToHiragana) |reverse|:false) as string\nend alphabetToHiragana\n\non henkan()\n    tell current application\n        tell application &quot;System Events&quot;\n            keystroke &quot;a&quot; using {command down}\n            key code 104\n            key code 104\n        end tell\n    end tell\nend henkan<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>[M1 Mac, Monterey 12.6.3] Monterey\u4ee5\u964d\u3067\u306f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u304b\u3089\u306e\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u65e5\u672c\u8a9e\u5909\u63db\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001\u81ea\u88fd\u306eAppleScript\u3092cmd + opt + z\u306b\u5272\u308a\u5f53\u3066\u3066\u3044\u307e\u3059\u3002 Va &hellip; <a href=\"https:\/\/mowareblog.net\/3rd\/2023\/02\/1386\/macos-%e3%81%8b%e3%81%aa%e3%82%ad%e3%83%bc2%e5%9b%9e%e6%8a%bc%e3%81%97%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%a4%89%e6%8f%9b%e5%90%8c%e7%ad%89%e6%a9%9f%e8%83%bd%e3%82%92apple\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u00a0[MacOS] \u201c\u304b\u306a\u30ad\u30fc2\u56de\u62bc\u3057\u3067\u65e5\u672c\u8a9e\u5909\u63db\u201d\u540c\u7b49\u6a5f\u80fd\u3092AppleScript\u3067\u5b9f\u88c5 Monterey\u3067\u3082\u52d5\u4f5c<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1386","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/posts\/1386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/comments?post=1386"}],"version-history":[{"count":1,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/posts\/1386\/revisions"}],"predecessor-version":[{"id":1387,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/posts\/1386\/revisions\/1387"}],"wp:attachment":[{"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/media?parent=1386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/categories?post=1386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mowareblog.net\/3rd\/wp-json\/wp\/v2\/tags?post=1386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}