Title
#macos
a

allister

10/03/2022, 1:50 PM
what does the
'c
kindof-suffix represent?
f

fritz

10/03/2022, 1:52 PM
'string'c
= case insensitive
1:53 PM
mdfind syntax:
&& = AND
 || = OR
 * = Wildcard symbol
 'string'c = Case insensitive (eg. 'StRiNg' == 'string'c)
 'string'd = Diacritical Mark Insensitive (eg. 'śtrîñg' == 'string'd)
1:53 PM
you can also stack case and diacritical insensitivity
1:54 PM
So:
'StRîñg' == 'string'cd
1:55 PM
though the diacritical marks are usually less of an issue unless dealing with a substantially international install-base
a

allister

10/03/2022, 2:13 PM
and I was thinking NSPredicate was hard to interact with, it makes sense mdfind would have this stuff but I swear I've never seen a reference cover it before