{"id":1059,"date":"2011-08-10T15:53:07","date_gmt":"2011-08-10T20:53:07","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=1059"},"modified":"2011-08-10T15:53:07","modified_gmt":"2011-08-10T20:53:07","slug":"shell-script-to-get-path-of-application-in-macos","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=1059","title":{"rendered":"Shell script to get path of application in MacOS"},"content":{"rendered":"<p>Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript:<\/p>\n<pre lang=\"BASH\">\n#!\/bin\/sh\n\nresult=`exec osascript <<EOF\ntell application \"Finder\"\n\tset thePath to (POSIX path of (path to application \"Doxygen\"))\nend tell\nEOF`\n\necho $result\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: #!\/bin\/sh result=`exec osascript<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[67,78,401,403],"class_list":["post-1059","post","type-post","status-publish","format-standard","hentry","category-tip","tag-applescript","tag-bash","tag-sh","tag-shell"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/1059","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=1059"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/1059\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}