Support quicklook preview. TODO: support other platforms besides Mac OS X