{"id":3642,"date":"2011-07-23T15:03:47","date_gmt":"2011-07-23T20:03:47","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=3642"},"modified":"2011-12-18T20:55:19","modified_gmt":"2011-12-19T01:55:19","slug":"preview-regressions-in-lion","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2011\/07\/23\/preview-regressions-in-lion\/","title":{"rendered":"Preview Regressions in Lion"},"content":{"rendered":"<ol>\n<li><p>Some applications I want to remember which documents were open when I quit, but never Preview. To prevent it from opening unwanted documents at launch, you can enter this command in Terminal:<\/p>\n<pre>defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false<\/pre>\n<p>Another good candidate for this treatment is:<\/p>\n<pre>defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false<\/pre>\n<\/li>\n<li><p>Preview opens every PDF in &ldquo;Continuous Scroll&rdquo; rather than &ldquo;Single Page&rdquo; mode. It will remember the change for a given document, but there seems to be no way to change the default.<\/p><\/li>\n<li><p>The &ldquo;Move to Trash&rdquo; feature, which I use all the time, no longer works when only a single document is open. Update (2011-08-10): And, though it does work when there are multiple documents, it messes up the order of the remaining ones.<\/p><\/li>\n<li><p>When trying to work around this, I noticed that it&rsquo;s no longer possible to make Preview AppleScriptable. Preview has, inexplicably, never been scriptable. However, from 10.4&#8211;10.6 it was possible to enable the default Cocoa scripting support via these Terminal commands:<\/p>\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<p>This was sufficient to be able to get at the file of the current document to delete it, change its Finder label, import it into EagleFiler, etc. Under 10.7, modifying the Info.plist file breaks the application&rsquo;s code signature. I would expect this to cause a harmless warning message in the Console, but it actually causes Preview to crash.<\/p>\n<p>Update (2011-07-26): See <a href=\"http:\/\/c-command.com\/blog\/2009\/12\/28\/capture-from-preview\/\">these instructions<\/a>.<\/p>\n<\/li>\n<li><p>Not exactly a regression, but the swiping gestures for changing pages now seem backwards compared with the rest of the system. Swiping left takes you to the <em>previous<\/em> page in Preview (or Safari), but it scrolls you to the right and moves you to the <em>next<\/em> space or full screen application.<\/p><\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>Some applications I want to remember which documents were open when I quit, but never Preview. To prevent it from opening unwanted documents at launch, you can enter this command in Terminal: defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false Another good candidate for this treatment is: defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false Preview opens every PDF [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3642","post","type-post","status-publish","format-standard","hentry","category-technology"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=3642"}],"version-history":[{"count":7,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3642\/revisions"}],"predecessor-version":[{"id":4064,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/3642\/revisions\/4064"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=3642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=3642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=3642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}