Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Add Quick Look support for WordPerfect form files System
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):
  • Conforms to UTIs (array)
    • Item 0 (string): com.corel.wordperfect.doc
  • Identifier (string): com.corel.wordperfect.frm
  • Equivalent Types (array)
    • public.mime-type (array)
      • Item 0 (string): application/vnd.sun.xml.writer
    • public.filename-extension (array)
      • Item 0 (string): frm
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.)
    •    
  • Currently 1.82 / 5
  You rated: 2 / 5 (17 votes cast)
 
[6,804 views]  

Add Quick Look support for WordPerfect form files | 1 comments | Create New Account
Click here to return to the 'Add Quick Look support for WordPerfect form files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Add Quick Look support for WordPerfect form files
Authored by: Uncle Asad on Jan 22, '10 02:20:09PM

First, this hint ran the other day; why is it back again?

Second, why mess around with the plist of some random application; why not modify the .plist of the thing doing the Quick Look preview generation (and Spotlight importing)?

Even better, it's substantially easier to just modify the generator/importer (and you won't have to repeat the hack every 3 months when you download a new version of OpenOffice.org); just add another filename extension to the existing "public.filename-extension" array in the plist.



[ Reply to This | # ]