Add Quick Look support for WordPerfect form files

Jan 22, '10 07:30:00AM

Contributed by: titaniumtroop

OpenOffice will open WordPerfect files, regardless of their extension. Quick Look will allow you to preview .wpd files, as long as you have the WordPerfect.qlgenerator package installed in /Library/Quicklook. However, one cannot Quick Look Wordperfect files with other extensions, such as .frm, which is a name given to Wordperfect form files.

In order to make Quick Look recognize the .frm file type, control-click on the OpenOffice.org.app and select Show Package Contents from the pop-up menu. In the Contents folder, double-click the Info.plist file (assuming you have XCode installed). Add a new child under the Exported Type UTIs key. Enter the following information (some of the keys will be there by default, others you will need to enter manually):

If you're working with an editor that edits raw plist files instead of Property List Editor's pretty version, here's how the above would look:
<dict>
  <key>UTTypeConformsTo</key>
  <array>
    <string>com.corel.wordperfect.doc</string>
  </array>
  <key>UTTypeIdentifier</key>
  <string>com.corel.wordperfect.frm</string>
  <key>UTTypeTagSpecification</key>
  <dict>
    <key>public.mime-type</key>
    <array>
      <string>application/vnd.sun.xml.writer</string>
    </array>
    <key>public.filename-extension</key>
    <array>
      <string>frm</string>
    </array>
  </dict>
</dict>
Save Info.plist, open a Terminal window, and type touch /Applications/OpenOffice.org.app/. Your .frm Wordperfect files should now be previewable in Quick Look. Implemented on 10.6.2. (This is an extension of this older hint.)

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100119080106292