Jump to content

Alfred not finding apps while Spotlight does


Recommended Posts

Alfred won't find any app I search for to launch. I do see that there have been threads about this before but, so far as I can tell, those seem to be cases where neither Alfred nor Spotlight can find them. And in my case, Spotlight is working fine.

 

I'm on the latest version of Alfred but this has happened since I moved to macOS Mojave and a new boot drive. I thought at first it was an indexing thing and that it would sort itself out but not so far. And as I say, Spotlight finds everything right away so the indexing appears complete.

 

Thanks for any help,

William

Link to comment
On 10/2/2018 at 9:24 AM, Vero said:

@WilliamGallagher Could you please install the Alfred metadata tool and drag one of your apps to it?

 

https://cachefly.alfredapp.com/tools/AlfredMetadataTool_v1.1.zip

 

If you could please paste the output here so that we can take a look, I'm curious to see whether the file types are correct for your apps. 

 

Cheers,
Vero

 

Oooh, that's very interesting. Look:

 

/Applications/Final Draft 11.app

Unable to obtain metadata for this file!

Raw mdls File Metadata
======================

/Applications/Final Draft 11.app: could not find /Applications/Final Draft 11.app.
 

Thanks for the tool: I don't understand why it's not getting metadata when I can open and run that app just fine, but it's a big clue, isn't it?

 

deanishe I've also tried the Reload command and it doesn't seem to have made a difference yet now I'm not surprised.

 

One more thing I've found that's nothing to do with Alfred but is another clue: Apple Mail won't find any old emails I search for. There's something seriously wrong here, isn't there?

 

I don't know what to do next but thanks for clearing up that it, presumably, isn't Alfred.

 

William

 

 

Link to comment
  • 3 weeks later...
On 10/5/2018 at 9:38 AM, deanishe said:

It's not Alfred. Your system's metadata index is messed up.

It's not the issue of the system index because I have the same problem with alfred's searching tool. Some of the apps cannot be found by it, especially the newly installed. Same thing happens to the file search. I tried to rebuild the system index but nothing changed, while Spotlight works fine. 

Link to comment

@qydxyx Did you follow the recommendation to delete the Spotlight-V100 when beginning the rebuilding of your Mac's metadata index? Spotlight may have some files/apps cached even while the file system needs to be rebuilt.

 

If you've followed all the steps, please provide more details:

- Which files can't you find (file types, file path)

- For apps, did you type "reload" into Alfred to refresh the application cache and see whether they become available?

- Which version of Alfred and macOS are you using?

 

Cheers,
Vero

Link to comment

I have a similar problem. Alfred does not find/show files that Spotlight finds. This seems to only involve Google File Stream files. I have reindexed Spotlight and checked all settings in Alfred, but can't find any reason for this. If I create a new file in Drive, it shows in Spotlight as well; so the index seem to update itself alright. The problem seem to be with Alfred...

I run latest version of Mojave and latest Alfred. This error was in High Sierra and earlier Alfred as well. Started a couple of months ago.

Help?

 

 

Link to comment

Here's the data from one of the gsheets that Spotlight shows but not Alfred:

/Volumes/GoogleDrive/Min enhet/Market/Market 2019/Partners/Partners 2019.gsheet

Unable to obtain metadata for this file!

Raw mdls File Metadata
======================

/Volumes/GoogleDrive/Min enhet/Market/Market 2019/Partners/Partners 2019.gsheet: could not find /Volumes/GoogleDrive/Min enhet/Market/Market 2019/Partners/Partners 2019.gsheet.

 

----

 

And here's from another doc in the same folder (with the same issue):

 

/Volumes/GoogleDrive/Min enhet/Market/Market 2019/Partners/timetable.eps

Internal File Metadata
======================

 Display Name: timetable.eps
    Alt Names: 
    File Type: com.adobe.encapsulated-postscript
     Comments: 
     Keywords: 
    Last Used: 

Raw mdls File Metadata
======================

kMDItemContentCreationDate         = 2018-10-14 20:06:04 +0000
kMDItemContentCreationDate_Ranking = 2018-10-14 00:00:00 +0000
kMDItemContentModificationDate     = 2018-10-14 20:06:05 +0000
kMDItemContentType                 = "com.adobe.encapsulated-postscript"
kMDItemContentTypeTree             = (
    "public.item",
    "public.data",
    "com.adobe.postscript",
    "com.adobe.encapsulated-postscript",
    "public.composite-content",
    "public.content"
)
kMDItemDisplayName                 = "timetable.eps"
kMDItemFSContentChangeDate         = 2018-10-14 20:06:05 +0000
kMDItemFSCreationDate              = 2018-10-14 20:06:04 +0000
kMDItemFSCreatorCode               = "ART5"
kMDItemFSFinderFlags               = 1024
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "timetable.eps"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 3629646
kMDItemFSTypeCode                  = "EPSP"
kMDItemInterestingDate_Ranking     = 2018-10-14 00:00:00 +0000
kMDItemKind                        = "Inkapslad PostScript"
kMDItemLogicalSize                 = 3629646
kMDItemPhysicalSize                = 3633152
 

Edited by Cacao
Link to comment

@Cacao Based on the first file you provided, we can establish that there's absolutely no metadata for that file, so it won't show up in results as there's no file type or information as to *what* it is for Alfred to decide whether to include it in your results.

 

As for the second one, what do you type into Alfred when searching for it? Is your Google Drive in Alfred's search scope?

 

It would be helpful if you could provide more details, as you'll need to at least:

- Include the Google Drive path in your search scope

- Ensure that you prefix your search term with "open" (or press the spacebar as a shortcut) as .eps files aren't included in default results

 

You could also experiment with moving the .eps file to your desktop where it'll become indexed as a "normal" macOS file, without the potential odd behaviour from being managed by Google Drive.

 

Cheers,
Vero

Link to comment
  • 4 months later...

Hi, I have the same problem. Alfred can't find my files, while spotlight does.

Could you please give me your advice? Thank you.

 

I installed the tool above. Here are the pasted results: 

 

/Applications/Alfred 3.app

Internal File Metadata
======================

 Display Name: Alfred 3
    Alt Names: Alfred 3.app
    File Type: com.apple.application-bundle
     Comments: 
     Keywords: 
    Last Used: 2019-03-22 11:59:45 +0000

Raw mdls File Metadata
======================

_kMDItemDisplayNameWithExtensions  = "Alfred 3.app"
kMDItemAlternateNames              = (
    "Alfred 3.app"
)
kMDItemCFBundleIdentifier          = "com.runningwithcrayons.Alfred-3"
kMDItemContentCreationDate         = 2019-03-13 13:51:34 +0000
kMDItemContentCreationDate_Ranking = 2019-03-13 00:00:00 +0000
kMDItemContentModificationDate     = 2019-03-13 13:51:34 +0000
kMDItemContentType                 = "com.apple.application-bundle"
kMDItemContentTypeTree             = (
    "com.apple.application-bundle",
    "com.apple.localizable-name-bundle",
    "com.apple.application-bundle",
    "public.directory",
    "public.executable",
    "com.apple.application",
    "public.item",
    "com.apple.package",
    "com.apple.bundle"
)
kMDItemCopyright                   = "Copyright © 2012 Running with Crayons. All rights reserved."
kMDItemDateAdded                   = 2019-03-22 11:17:54 +0000
kMDItemDateAdded_Ranking           = 2019-03-22 00:00:00 +0000
kMDItemDisplayName                 = "Alfred 3"
kMDItemExecutableArchitectures     = (
    "x86_64"
)
kMDItemFSContentChangeDate         = 2019-03-13 13:51:34 +0000
kMDItemFSCreationDate              = 2019-03-13 13:51:34 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 1
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "Alfred 3.app"
kMDItemFSNodeCount                 = 1
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 7102916
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2019-03-22 00:00:00 +0000
kMDItemKind                        = "Application"
kMDItemLanguages                   = (
    en
)
kMDItemLastUsedDate                = 2019-03-22 11:59:45 +0000
kMDItemLastUsedDate_Ranking        = 2019-03-22 00:00:00 +0000
kMDItemLogicalSize                 = 7102916
kMDItemPhysicalSize                = 7667712
kMDItemUseCount                    = 2
kMDItemUsedDates                   = (
    "2019-03-21 22:00:00 +0000"
)
kMDItemVersion                     = "3.8.1"
 

 

Edited by AXLr80r
Link to comment

Yes sure. Here is the result of a video file i need:

 

 

/Users/kostis/_Kostis_Archeia/Delta_Stuff/deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4

Internal File Metadata
======================

 Display Name: 
    Alt Names: 
    File Type: 
     Comments: 
     Keywords: 
    Last Used: 

Raw mdls File Metadata
======================

kMDItemFSContentChangeDate = (null)
kMDItemFSCreationDate      = (null)
kMDItemFSCreatorCode       = ""
kMDItemFSFinderFlags       = (null)
kMDItemFSHasCustomIcon     = (null)
kMDItemFSInvisible         = 0
kMDItemFSIsExtensionHidden = (null)
kMDItemFSIsStationery      = (null)
kMDItemFSLabel             = (null)
kMDItemFSName              = (null)
kMDItemFSNodeCount         = (null)
kMDItemFSOwnerGroupID      = (null)
kMDItemFSOwnerUserID       = (null)
kMDItemFSSize              = (null)
kMDItemFSTypeCode          = ""
 

Link to comment
5 minutes ago, AXLr80r said:

Yes sure. Here is the result of a video file i need:

 

 

As you can see from the results, there is no metadata for this file, as most of these fields should be populated.

 

The first step would be to rebuild your Mac's metadata index, which you can do by going to Alfred's Advanced preferences by clicking "Rebuild macOS Metadata" and following the steps. This can take up to an hour to complete, but once it's done, dragging the same file should show some metadata.

 

Please do this and let us know how you get on.

 

Cheers,
Vero

Link to comment

Hi again, I did the "Rebuild macOS Metadata" . There are some metadata shown now, but the problem remains. Here are the results:            

 

/Users/kostis/_Kostis_Archeia/Delta_Stuff/deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4

Internal File Metadata
======================

 Display Name: deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4
    Alt Names: 
    File Type: public.mpeg-4
     Comments: 
     Keywords: 
    Last Used: 2019-03-28 11:32:22 +0000

Raw mdls File Metadata
======================

kMDItemAudioBitRate                = 235
kMDItemAudioChannelCount           = 2
kMDItemCodecs                      = (
    "H.264",
    AAC
)
kMDItemContentCreationDate         = 2016-03-13 21:07:30 +0000
kMDItemContentCreationDate_Ranking = 2016-03-13 00:00:00 +0000
kMDItemContentModificationDate     = 2015-05-20 07:33:14 +0000
kMDItemContentType                 = "public.mpeg-4"
kMDItemContentTypeTree             = (
    "public.mpeg-4",
    "public.item",
    "public.movie",
    "public.audiovisual-content",
    "public.mpeg-4",
    "public.data",
    "public.content"
)
kMDItemDateAdded                   = 2016-03-24 21:19:32 +0000
kMDItemDateAdded_Ranking           = 2016-03-24 00:00:00 +0000
kMDItemDisplayName                 = "deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4"
kMDItemDurationSeconds             = 2926.761666666667
kMDItemFSContentChangeDate         = 2015-05-20 07:33:14 +0000
kMDItemFSCreationDate              = 2016-03-13 21:07:30 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 430915127
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2019-03-28 00:00:00 +0000
kMDItemKind                        = "MPEG-4 movie"
kMDItemLastUsedDate                = 2019-03-28 11:32:22 +0000
kMDItemLastUsedDate_Ranking        = 2019-03-28 00:00:00 +0000
kMDItemLogicalSize                 = 430915127
kMDItemMediaTypes                  = (
    Video,
    Sound
)
kMDItemPhysicalSize                = 430915584
kMDItemPixelHeight                 = 1080
kMDItemPixelWidth                  = 1920
kMDItemProfileName                 = "HD (1-1-1)"
kMDItemStreamable                  = 0
kMDItemTotalBitRate                = 1173
kMDItemUseCount                    = 3
kMDItemUsedDates                   = (
    "2019-03-27 22:00:00 +0000"
)
kMDItemVideoBitRate                = 938
 

Link to comment

@AXLr80r We're happy to help you but in order to do this, you'll need to provide more info.

 

  • What are you typing into Alfred to search for this?
  • Provide screenshots of your Default Results and File Search preferences
  • I can see you've been Alfred for a number of years so were you previously able to find these files and the issue started recently?  
  • Which version of Alfred and macOS are you using?

The more information you provide, the more likely we'll be able to help you out :)

 

Cheers,
Vero

Link to comment

Thank you very much for your response.

I really can't remember when the issue started. As long as Spotlight finds it, it didn't bother me so much.

I've tried different ways of typing: "delta" , "deltaC", "deltaCast", "gnupg", "ev3ryday", etc (I attach some screenshots)

Alfred version 3.8.1

macOS version Mojave 10.14.3

 

I hope the screenshots can help you figure out a solution. 

 

Thank you.

 

777591118_Screenshot2019-03-28at14_25.48-2.thumb.png.cab29b5ccc8f565d4a8d8418a03eaca5.png758252011_Screenshot2019-03-28at14_23_33.png.6d51f84070b9bcecc8cffef439c8aedc.png665744606_Screenshot2019-03-28at14_23_09.png.de528c4e89205f8b5e633657da833af5.png

Link to comment

@AXLr80r 

 

  • What are you expecting to find with the last keyword? What kind of file type? Is it in your default results?
  • Have you checked the metadata for the relevant files/folders to make sure the metadata is there?
  • What's the path of the file you're searching for, and is it in your Default Results' Search Scope? (Please provide that screenshot too)

Cheers,
Vero

Link to comment

Ok. First question (about the last keyword.) 

I search a video file which is named:      deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4

That's why i typed "ev3ryday" and "deltacast".

 

Second question:

The metadata are shown above on the pasted results of my previous post. (For this file.)

 

(I used this file as example.)

 

Third question: 

The path of the file is in my home folder  /Users/kostis/_Kostis_Archeia/Delta_Stuff/deltaCast s02e05 _ ev3rydayGnuPG - Part 1_2.mp4

It is also shown in the first line of the pasted results above.

 

Here is a cropped screenshot of search scope (I can't upload more bytes. Quota exceeded)

 

Any help welcome.

 

843343473_Screenshot2019-03-28at18_47_05.png.70a2d0d050c6fd2dcbcbddb9702bea00.png

 

Edited by AXLr80r
Link to comment

@AXLr80r As you can see, folders are being returned, which I assume are in your Default Results essentials. (They're cropped out but I assume that's the case)

 

To find a file, you'll need to ensure you prefix your search with a space (which is the equivalent of the "open" keyword) E.g. "[spacebar]ev3ryday" should return your file

 

Here's more info about file search:

https://www.alfredapp.com/help/features/file-search/#file-search

 

Let me know how you get on :) 

 

Cheers,
Vero

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...