我正在玩OS X中的QuickLook生成器,看起来你不能“覆盖”文件夹的默认预览,尽管你可能可以升级到SnowLeopard。
我使用qlmanage
使用简单的QuickLook生成器对其进行了测试,但它确实被禁用了:
> qlmanage -d -g /Users/martin/Library/QuickLook/quicklooktest.qlgenerator -c public.folder -p /Users/martin/Library/QuickLook/
Testing Quick Look preview with files:
/Users/martin/Library/QuickLook/quicklooktest.qlgenerator
/Users/martin/Library/QuickLook/
- force using content type UTI: public.folder
[ERROR] Can't get plugin bundle info at file:///Applications/Contents/Library/QuickLook/QuickLookPlugin.qlgenerator/
[WARNING] Generators for folders are forbidden - ignoring <QLGenerator /Users/martin/Library/QuickLook/quicklooktest.qlgenerator>
2014-01-03 13:00:46.308 qlmanage[8687:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9523, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-01-03 13:00:46.308 qlmanage[8687:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x3f4b, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2014-01-03 13:00:46.309 qlmanage[8687:507] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
[WARNING] Generators for folders are forbidden - ignoring <QLGenerator /Users/martin/Library/QuickLook/quicklooktest.qlgenerator>
它说[WARNING] Generators for folders are forbidden
。这是永久性的吗?我可以以某种方式允许吗?
答案 0 :(得分:2)
很抱歉,但是自从Snow Leopard确实无法为文件夹提供生成器。您应该向Apple提交一个错误,这是您需要的功能,但我不会保持希望。