Clicky

vze26m98
Hi all-

I read a bit in the Forum on this subject, but I don't think my question is addressed. I'd like to be able to search for files with a specific Creator Code. In Leap, I can say something like this:

mdq:kMDItemFSCreatorCode == "SKim"

Can I add kMDItemFSCreatorCode to the query attribute list, or is there a way to enter raw Spotlight queries?

(In the case of Skim, this is very useful, as it's the only way to differentiate "Skimmed" PDFs from others.)

Best wishes, Charles
0 0
houdah
Hi!

From the attribute pop-up menu in a criterion row, select "Other…". You will be presented a list of possible attributes to query.

Best,
Pierre Bernard
Houdah Software s.à r.l.

Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
vze26m98
Hi Pierre-

The closest I could find was Content Creator, which translates to:

((kMDItemCreator == '*SKim*'cd))

But I need:

((kMDItemFSCreatorCode == '*SKim*'cd))

Am I missing something? Is there a "Raw Entry" attribute?

Best, Charles
0 0
houdah
Hi!

Sorry, my bad. kMDItemFSCreatorCode is not supported.

Please try "Find by Example". Drag a Skim PDF file onto a "Content kind" or "Content type" criterion. Drop it anywhere but on a text field. The criterion will adapt to match the file.

Best,
Pierre Bernard
Houdah Software s.à r.l.

Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
vze26m98
Hi Pierre-

That doesn't work as the Type is com.adobe.pdf.

Here's the mdls for my file. You can see my predicament:

azonips:~/Desktop$ mdls babbitt-1989.pdf
kMDItemContentCreationDate     = 2009-01-27 13:08:49 -0500
kMDItemContentModificationDate = 2010-09-27 14:56:59 -0400
kMDItemContentType             = "com.adobe.pdf"
kMDItemContentTypeTree         = (
    "com.adobe.pdf",
    "public.data",
    "public.item",
    "public.composite-content",
    "public.content"
)
kMDItemDisplayName             = "babbitt-1989.pdf"
kMDItemEncodingApplications    = (
    "Adobe PDF Library 7.0"
)
kMDItemFSContentChangeDate     = 2010-09-27 14:56:59 -0400
kMDItemFSCreationDate          = 2009-01-27 13:08:49 -0500
kMDItemFSCreatorCode           = "SKim"
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "babbitt-1989.pdf"
kMDItemFSNodeCount             = 0
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 196116
kMDItemFSTypeCode              = "PDF "
kMDItemKind                    = "PDF"
kMDItemLastUsedDate            = 2010-09-27 14:57:07 -0400
kMDItemNumberOfPages           = 8
kMDItemOMUserTags              = (
    babbitt,
    testimony,
    "music history"
)
kMDItemOMUserTagTime           = 2010-09-12 13:36:59 -0400
kMDItemPageHeight              = 842
kMDItemPageWidth               = 595
kMDItemSecurityMethod          = "None"
kMDItemUsedDates               = (
    "2009-01-27 00:00:00 -0500",
    "2010-09-27 00:00:00 -0400"
)
kMDItemVersion                 = "1.4"
kOMUserTags                    = (
    babbitt,
    testimony,
    "music history"
)

There's nothing else to distinguish a Skim PDF from an Adobe Pdf.

Best, Charles

0 0
houdah
Hi!

Querying the kMDItemFSCreatorCode attribute is not officially by the Spotlight API. That's why it is not exposed in HoudahSpot.

Initial tests show that querying kMDItemFSCreatorCode does indeed seem to work. If that is confirmed, I will add that feature with the next update.

Best,
Pierre Bernard
Houdah Software s.à r.l.

Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
vze26m98
C'est le mervielleux! Merci beaucoup, Pierre...

0 0
vze26m98
Hi Pierre-

Belated thanks for adding this feature to the recent Houdah Spot update!!

Best wishes, Charles

0 0