{"id":990,"date":"2011-06-30T14:44:47","date_gmt":"2011-06-30T19:44:47","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=990"},"modified":"2011-06-30T14:44:47","modified_gmt":"2011-06-30T19:44:47","slug":"running-applescript-commands-from-the-terminal-app","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=990","title":{"rendered":"Running AppleScript commands from the Terminal.app"},"content":{"rendered":"<p>I found some pages on the web on how to run an AppleScript from the terminal, but this seems to be the only one that works in my situation:<\/p>\n<pre lang=\"AppleScript\">\necho 'tell application \"Google Chrome\" to quit' | \/usr\/bin\/osascript \n<\/pre>\n<p>In my case, my keyboard stopped working so I wanted to safely shut down the programs via ssh before I rebooted the workstation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found some pages on the web on how to run an AppleScript from the terminal, but this seems to be the only one that works in my situation: echo &#8216;tell application &#8220;Google Chrome&#8221; to quit&#8217; | \/usr\/bin\/osascript In my case, my keyboard stopped working so I wanted to safely shut down the programs via &#8230; <a title=\"Running AppleScript commands from the Terminal.app\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=990\" aria-label=\"Read more about Running AppleScript commands from the Terminal.app\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,31],"tags":[67,291,437],"class_list":["post-990","post","type-post","status-publish","format-standard","hentry","category-coding","category-tip","tag-applescript","tag-macos","tag-terminal"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=990"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/990\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}