{"id":227,"date":"2021-05-08T20:53:03","date_gmt":"2021-05-08T20:53:03","guid":{"rendered":"https:\/\/www.valleau.art\/blog\/?p=227"},"modified":"2021-05-08T20:53:03","modified_gmt":"2021-05-08T20:53:03","slug":"open-with-in-snow-leopard","status":"publish","type":"post","link":"https:\/\/valleau.art\/blog\/open-with-in-snow-leopard\/","title":{"rendered":"&#8220;Open With&#8221; in Snow Leopard"},"content":{"rendered":"<p>If you&#8217;ve updated to 10.6 (Snow Leopard) then you&#8217;ve likely noticed that the binding between documents and the applications that created them is frequently broken.<\/p>\n<p>That is, create a document in BBEdit and save it to the desktop. Now double-click that document. It may open in Safari, in Textedit, in Word, or, if you&#8217;re lucky in BBEdit.<\/p>\n<p>This is intentional on Apple&#8217;s part; it is not a mistake. (In the pre-10.6 days, each document had a hidden type code and a hidden creator code, and the Finder used these to link between the document and its creator. That&#8217;s not being done anymore&#8230; and needless to say, that&#8217;s inconvenient.)<\/p>\n<p>That said, all that&#8217;s left is the document&#8217;s (sometimes) hidden suffix, such as &#8220;.txt&#8221; or &#8220;.doc&#8221; or &#8220;.html&#8221; and so on.<\/p>\n<p>Now you can make one program open ALL documents that end with &#8220;.txt&#8221; by highlighting the document, and pressing command-i. In the resulting GetInfo box, select the &#8220;Open with:&#8221; section; pick the application you&#8217;d like to use to open the file; and then click the &#8220;Change All&#8230;&#8221; button.<\/p>\n<p>But that suffers from making -all- documents that end with that suffix open in just one program&#8230; which may or may not be the application that actually created it.<\/p>\n<p>So, here&#8217;s what I did.<\/p>\n<p>First, I did go ahead and set up my &#8220;default&#8221; applications, as described above.<\/p>\n<p>Then, using Automator (which is the point of this article) I easily made services to open documents with a specific application.<\/p>\n<p>That is: I control click on the document, and from the resulting menu, choose &#8220;Services\/Preview&#8221; or &#8220;Services\/Textedit&#8221; or whatever app I want to use.<\/p>\n<p>For example, I generally prefer to use Acrobat to read my PDF files. However, Acrobat takes forever to print them, so if I&#8217;m printing, I want to open them in Preview (which for reasons I don&#8217;t understand, seems to print PDFs much faster.)<\/p>\n<p>So, using the GetInfo technique, I&#8217;ve set PDFs to open in Acrobat.<\/p>\n<p>Then, to make an item that will appear in the contextual menu when I control-click on a document, I ran Automator.<\/p>\n<p>When Automator comes up, I chose to make a new Service. (If you don&#8217;t see the choices, choose &#8220;New&#8221; from the File menu, and click on the Service icon.)<\/p>\n<p>Next, make sure that &#8220;Library&#8221; is highlighted in the left-most column. Then, in the next column over, find the item &#8220;Open Finder Items.&#8221;<\/p>\n<p>Click and hold and drag &#8220;Open Finder Items&#8221; to the large area on the right, and it will open, revealing a popup menu, which initially says &#8220;Default Application.&#8221;<\/p>\n<p>Using that popup menu, select the application you want to use. (If you can&#8217;t find it, there&#8217;s an &#8220;Other&#8230;&#8221; at the bottom of the menu list.)<\/p>\n<p>That&#8217;s it. Now just choose Save from the main file menu, and give your new service a name. (I choose &#8220;ow Acrobat&#8221; or &#8220;ow TextEdit&#8221; and so on where the &#8220;ow&#8221; simply means to me &#8220;Open With&#8221;. Pick whatever is meaningful to you.)<\/p>\n<p>Once you&#8217;ve named it, hit the &#8220;save&#8221; button, and you&#8217;re done. You can quit automator, or make some more &#8220;Open With&#8230;&#8221; services if you like.<\/p>\n<p>To use your new Service, control-click on the document in the finder, choose &#8220;Services&#8230;&#8221; and your new service.<\/p>\n<p>This whole process takes much longer to describe than it does to do, and once you&#8217;ve done one, you&#8217;ll find yourself doing many.<\/p>\n<p>Automator is a very handy tool, and very easy to use. We&#8217;ll cover more of it later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve updated to 10.6 (Snow Leopard) then you&#8217;ve likely noticed that the binding between documents and the applications that created them is frequently broken. That is, create a document in BBEdit and save it to the desktop. Now double-click that document. It may open in Safari, in Textedit, in Word, or, if you&#8217;re lucky [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-mac-tips"],"_links":{"self":[{"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":1,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/valleau.art\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}