我已经为csv文件安装了QuickLookCSV.qlgenerator
插件,当我从Finder快速查看csv文件时,效果很好。
但是,当我想从终端查看相同文件时
qlmanage -p a.csv
#给出沙箱错误。
$ qlmanage -p a.csv
Testing Quick Look preview with files:
a.csv
2018-10-17 11:17:53.377 qlmanage[7132:10766201] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9303, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2018-10-17 11:17:53.377 qlmanage[7132:10766201] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
是否有快速解决方案,而不是调试插件,而是编写一个applescript,它将转到Finder中的文件位置,然后按“空格键”,以便在QuickView中打开文件?
def qlm(){
cd to the directory of "$1"
press spacebar on the "$1"
}
如何进行这项工作?
我正在使用MacOS mojave。
谢谢。
相关链接:
QLPreviewView can not show the quicklook preview in sandbox
QuickLook Plugin Failing with sandboxing error
https://apple.stackexchange.com/questions/127651/quicklook-stopped-working-with-xcodes-m-and-h-file-suddenly