Quick Look is a new feature for Mac OS X 10.5 (Leopard). It lets users see a preview and a thumbnail for various document types in the Finder and other apps. In order for Quick Look to work, documents need UTIs (Uniform Type Identifiers). I have defined the following UTIs for Mulberry documents:
- Drafts (extension .mbd, type 'Lett'): com.mulberrymail.mulberry.draft
A working plug-in is now available. Please note that it only works for drafts. It should work for plain text and HTML-based drafts. It shows headers and message text.
You can download the plug-in here:
http://tyrion.rrz.uni-koeln.de/~a0620/MulberryLook.qlgenerator.tgz
Installation instructions:
- unzip the archive
- move the bundle MulberryLook.qlgenerator to ~/Library/QuickLook or /Library/QuickLook
Future releases of Mulberry will have a modified Info.plist file with support for UTIs. If you want to modify it yourself, just add these lines to the outermost dict (sorry for the messed up indentation):
<key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.text</string> </array> <key>UTTypeDescription</key> <string>Mulberry draft</string> <key>UTTypeIconFile</key> <string>Lett.icns</string> <key>UTTypeIdentifier</key> <string>com.mulberrymail.mulberry.draft</string> <key>UTTypeReferenceURL</key> <string>http://www.mulberrymail.com</string> <key>UTTypeTagSpecification</key> <dict> <key>com.apple.ostype</key> <array> <string>Lett</string> </array> <key>public.filename-extension</key> <array> <string>mbd</string> </array> </dict> </dict> </array>
If you don't know what this means, don't try it ...
If the plug-in isn't used, it may be necessary to refresh the Launch Services database. This may be overkill, but it works:
- quit Mulberry
- run the following command from the Terminal
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -all local,system,user
You can verify the plug-in manually by running
qlmanage -c com.mulberrymail.mulberry.draft -p <path to file>
from the Terminal.