{"id":135,"date":"2009-12-28T13:25:36","date_gmt":"2009-12-28T18:25:36","guid":{"rendered":"http:\/\/c-command.com\/blog\/?p=135"},"modified":"2013-10-24T10:28:06","modified_gmt":"2013-10-24T15:28:06","slug":"capture-from-preview","status":"publish","type":"post","link":"https:\/\/c-command.com\/blog\/2009\/12\/28\/capture-from-preview\/","title":{"rendered":"Using EagleFiler\u2019s Capture Key From Preview"},"content":{"rendered":"<p>EagleFiler\u2019s <a href=\"http:\/\/c-command.com\/eaglefiler\/manual-ah\/capture-key\">capture key<\/a> is often the easiest way to get files into EagleFiler. You can just press the F1 key to import the selected items or the frontmost window of the current application. Unfortunately, this does not work in Preview. The capture feature relies on AppleScript, and Preview does not support AppleScript. <cite>Macworld<\/cite> wrote an article in 2006 that shows a way to <a href=\"http:\/\/www.macworld.com\/article\/53391\/2006\/10\/previewscript.html\">enable AppleScript in Preview<\/a>. The Terminal commands need to be modified slightly for Mac OS X 10.6 Snow Leopard:<\/p>\n\n<pre>sudo defaults write \/Applications\/Preview.app\/Contents\/Info NSAppleScriptEnabled -bool YES\nsudo chmod a+r \/Applications\/Preview.app\/Contents\/Info.plist<\/pre>\n\n<p>(The above two commands also work on Mac OS X 10.4 and 10.5.)<\/p>\n<p>This procedure seems to work for lots of people, and we believe it to be safe. However, you should be aware that you are modifying the Preview application to work in a way that Apple did not intend.<\/p>\n\n<p>Update (2011-07-26): For Mac OS X 10.7 Lion, use these commands:<\/p>\n\n<pre>sudo ditto -c -k --sequesterRsrc --keepParent \/Applications\/Preview.app \/Applications\/Preview.app.zip\nsudo defaults write \/Applications\/Preview.app\/Contents\/Info NSAppleScriptEnabled -bool YES\nsudo chmod a+r \/Applications\/Preview.app\/Contents\/Info.plist\nsudo codesign -f -s - \/Applications\/Preview.app<\/pre>\n\n<p>This also saves a ZIP archive of your original copy of Preview, in case you want to go back to the unmodified version.<\/p>\n\n<p>Update (2012-09-03): For Mac OS X 10.8 Mountain Lion, first install <a href=\"http:\/\/itunes.apple.com\/us\/app\/xcode\/id497799835?mt=12\">Xcode<\/a>, a free download from the Mac App Store. Then use these commands:<\/p>\n\n<pre>sudo ditto -c -k --sequesterRsrc --keepParent \/Applications\/Preview.app \/Applications\/Preview.app.zip\nsudo defaults write \/Applications\/Preview.app\/Contents\/Info NSAppleScriptEnabled -bool YES\nsudo chmod a+r \/Applications\/Preview.app\/Contents\/Info.plist\nsudo ln -s \/Applications\/Xcode.app\/Contents\/Developer\/usr\/bin\/codesign_allocate \/usr\/bin\nsudo codesign -f -s - \/Applications\/Preview.app<\/pre>\n<p>It\u2019s OK if the <tt>ln<\/tt> command reports that the \u201cFile exists\u201d.<\/p>\n\n<p>Update (2013-10-24): In Mac OS X 10.9 Mavericks, Preview is scriptable out of the box, so the steps on this page are unnecessary.<\/p>","protected":false},"excerpt":{"rendered":"<p>EagleFiler\u2019s capture key is often the easiest way to get files into EagleFiler. You can just press the F1 key to import the selected items or the frontmost window of the current application. Unfortunately, this does not work in Preview. The capture feature relies on AppleScript, and Preview does not support AppleScript. Macworld wrote an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":20,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/posts\/135\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c-command.com\/blog\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}