看看这个 mdfind 查询:
mdfind 'kMDItemFSName = "Pages.app" || kMDItemFSName = "Keynote.app" || kMDItemFSName = "Numbers.app"'
有什么问题吗?也许合乎逻辑OR
- ||
Apple 在mdfind
手册页上没有记录?
在 99% 的情况下,mdfind
返回每个应用程序的三个文件路径/位置iwork
(或未安装时不返回任何内容)。
/Applications/iWork '09/Pages.app
/Applications/iWork '09/Keynote.app
/Applications/iWork '09/Numbers.app
但是在〜1-5%(10.8.2)中,我从mdfind
:
/Applications/iWork '09/Keynote.app
/Applications/Mail.app
/Applications/Messages.app
/Applications/Utilities/Migration Assistant.app
/Applications/Notes.app
...
/Library/Scripts/Printing Scripts/Convert To PDF.scpt
/Library/Scripts/Printing Scripts/Convert To PostScript.scpt
/Library/Scripts/Printing Scripts/Print Window With Subfolders.scpt
/Library/Scripts/Printing Scripts/Print Window.scpt
...
/System/Library/Frameworks/GameKit.framework/Versions/A/Resources/GKNavbarBackButtonNormalLandscape.png
/System/Library/Frameworks/GameKit.framework/Versions/A/Resources/GKNavbarBackButtonNormalLandscape@2x.png*
------------ List goes on (tons of stuff) ------------
我的mdfind
查询有问题吗,或者有什么问题Spotlight database
吗?
当然有可能:在 Spotlight 中引入10.7.5
和10.8.2
更新存在严重错误(检查https://discussions.apple.com/message/19863234#19863234)
谢谢 :-)