{"id":171,"date":"2008-05-20T09:15:01","date_gmt":"2008-05-20T15:15:01","guid":{"rendered":"http:\/\/www.cortig.net\/wordpress\/?p=171"},"modified":"2008-05-20T09:21:54","modified_gmt":"2008-05-20T15:21:54","slug":"converting-files-for-double-click-in-office-2008","status":"publish","type":"post","link":"https:\/\/www.cortig.net\/wordpress\/2008\/05\/20\/converting-files-for-double-click-in-office-2008\/","title":{"rendered":"Converting files for double-click in Office 2008"},"content":{"rendered":"<p>\tIn the Service release 1 for Office 2008, Microsoft decided to prevent files with old file types to open through a double-click or a drag and drop (and don&#8217;t know why and that&#8217;s not the point here).<br \/>\nThere is a workaround to open these files. MS recommends that you use the Open dialog from within Office applications.<br \/>\n   If you have hundreds of old files affected with this problem, that&#8217;s hardly a decent solution.<\/p>\n<p>   You can batch-wipe out the creator code of your files as well. If you do so, the Finder will then exclusively rely on the extension of the file (eg: .doc, .xls\u2026). That works well\u2026\u00a0unless you are missing extensions on some of your files.<\/p>\n<p>   I&#8217;ve been considering a much better approach: correct the file types according to what they are now actually supposed to be.<br \/>\n   I wrote a simple AppleScript for that, but I need feeback:<\/p>\n<ul>\n<li>I know what outdated file types are now blocked by Office for Word and Excel, but not for PowerPoint.<\/li>\n<li>I need people to test the script and report back in case there is a problem (test on a copy of your files of course!).<\/li>\n<\/ul>\n<p>Here is the script:<\/p>\n<p><code>on open TheFiles<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repeat with OneFile in TheFiles<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tell application \"Finder\"<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- get the file type<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set TheFileType to file type of OneFile<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- detect old file types for Office files chose the correct one instead<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if TheFileType = \"WDBN\" then set UpdatedFileType to \"W8BN\"<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if TheFileType = \"XLS4\" then set UpdatedFileType to \"XLS8\"<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if TheFileType = \"SLD8\" then set UpdatedFileType to \"SLD8\"<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- set the new file type<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set file type of OneFile to UpdatedFileType<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end tell<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end repeat<br \/>\nend open<br \/>\n-- warning in case the application is not use as drag and drop<br \/>\non run<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;display dialog \"Drop your files to be converted on this icon\"<br \/>\nend run<br \/>\n<\/code><\/p>\n<p>You need to compile it as an application and drag your files on its icon.<br \/>\nYou can download the compiled (yet editable) version <a href=\"http:\/\/www.cortig.net\/file\/Office_File_Type Converter.zip\">here<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>In the Service release 1 for Office 2008, Microsoft decided to prevent files with old file types to open through a double-click or a drag and drop (and don&#8217;t know why and that&#8217;s not the point here). There is a workaround to open these files. MS recommends that you use the Open dialog from within Office applications. If you have hundreds of old files affected with this problem, that&#8217;s hardly a decent solution. You can batch-wipe out the creator code of your files as well.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":0,"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cortig.net\/wordpress\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}