Hello
Look at this mdfind query:
Is there something wrong with it? Perhaps logical OR - || which is not documented by Apple IMHO?
Reason for this question is this..
x In 99% cases mdfind returns three file paths - locations of each iwork app. (or nothing when they are not installed)
/Applications/iWork '09/Pages.app
/Applications/iWork '09/Keynote.app
/Applications/iWork '09/Numbers.app
x But in let's say 1% (10.8.2) I get this from 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) ------------
A) Is there something wrong with my mdfind query?
OR
B) Is there something wrong with Spotlight database? (Certainly a possibility -> There is serious bug in spotligh introduced with 10.7.5 and 10.8.2 updates (https://discussions.apple.com/message/19863234#19863234))
Thanks
Look at this mdfind query:
Code:
mdfind 'kMDItemFSName = "Pages.app" || kMDItemFSName = "Keynote.app" || kMDItemFSName = "Numbers.app"'
Is there something wrong with it? Perhaps logical OR - || which is not documented by Apple IMHO?
Reason for this question is this..
x In 99% cases mdfind returns three file paths - locations of each iwork app. (or nothing when they are not installed)
/Applications/iWork '09/Pages.app
/Applications/iWork '09/Keynote.app
/Applications/iWork '09/Numbers.app
x But in let's say 1% (10.8.2) I get this from 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) ------------
A) Is there something wrong with my mdfind query?
OR
B) Is there something wrong with Spotlight database? (Certainly a possibility -> There is serious bug in spotligh introduced with 10.7.5 and 10.8.2 updates (https://discussions.apple.com/message/19863234#19863234))
Thanks