Jump to content
FilchesCat

Applications are not found and can't launch

Recommended Posts

MacOS 10.13.6 on a 6,1 MacPro - Alfred has been used all day every day for a couple years. Recently, it does not find an installed app after invoked with control space - sees no installed apps at all. I suspect I've inadvertently changed a setting but can't figure out. I've tried ctrl-space, opt-space and cmd-space. I've purged its cache. For example, if I type 'word', expecting to see the MSWord app listed and ready to launch, I see Alfred preparing to launch Chrome and search for the word 'word'. A little help please . . . 

Share this post


Link to post

Thank you Tsunami for the link. Following a hint there, I can now 'open' an app by invoking the Alfred input window (ctrl-space bar) and typing the word 'open' then the name of the app I want to launch, e.g. 'OPEN WORD' to launch MS Word. This is an acceptable work-around; not going to complain about a few extra finger strokes and a second or two. BUT, it's not how Alfred used to work - by simply starting to type the actual name of the app w/o 'open' as a precursor command. One of those things I guess.

Share this post


Link to post

I have same problem on MacOS 10.13.6 and a Mac Pro as well.  But I am fairly sure its something with the indexes as I have followed the guides here and anything else I could find on the web.  No matter what I do I can't get the indexes rebuilt correctly.  aka, finder search and spotlight search does not work.

 

I am not sure if this has been done before (doing your own application search) in a Python script as normally you would never need it using Alfred. Anyway, the below works for me (you need powerpack and Alfred v3+)

 

https://gist.github.com/Phuket2/0bc297ebfedfa7bef6033c0c869b0c67

 

I hope this helps someone.  I am sure what I have done could be done a lot better(maybe someone who is good at this could do a more robust version) .  I have just under 450 apps installed on my Mac, so I was desperate to get something working again until I am ready to do a fresh system install (I haven't done a fresh system install since 2013).  

 

Having to do this also opened my eyes up to different use cases for script filter as I have not used it in the past.  

 

 

ss_alfred.png

ss_wf.png

Share this post


Link to post

@FilchesCat @Phuket2 Could you please download the Metadata Tool below and drag some of the apps that aren't showing up for you? I'd be interested in seeing the output to help understand why Alfred and (I assume in both of your cases) Spotlight aren't finding the files.

 

Install this and drag a file/app to it:

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

 

Paste the results in your reply and I'll take a look :)

 

Cheers,
Vero

Share this post


Link to post

Vero,

Below is the output.  I had another look at my settings.  One thing that changed things was if I turn on the 'Search all file types' in the Default Results settings.  With that option set, I can now find my applications.  The icons for the Apps found are generic application icons.  Even though I shouldn't need that setting on, its a better workaround.

 

Regards,

 

/Applications/Google Chrome.app

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

 Display Name: Google Chrome
    Alt Names: Google Chrome.app
    File Type: dyn.age80c6du
     Comments: 
     Keywords: 
    Last Used: 2018-08-24 09:26:32 +0000

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

_kMDItemDisplayNameWithExtensions  = "Google Chrome.app"
kMDItemAlternateNames              = (
    "Google Chrome.app"
)
kMDItemContentCreationDate         = 2012-10-10 08:09:59 +0000
kMDItemContentCreationDate_Ranking = 2012-10-10 00:00:00 +0000
kMDItemContentModificationDate     = 2018-08-07 22:45:37 +0000
kMDItemContentType                 = "dyn.age80c6du"
kMDItemDateAdded                   = 2017-12-15 05:26:22 +0000
kMDItemDateAdded_Ranking           = 2017-12-15 00:00:00 +0000
kMDItemDisplayName                 = "Google Chrome"
kMDItemFSContentChangeDate         = 2018-08-07 22:45:37 +0000
kMDItemFSCreationDate              = 2012-10-10 08:09:59 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 1
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "Google Chrome.app"
kMDItemFSNodeCount                 = 1
kMDItemFSOwnerGroupID              = 80
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 376163238
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2018-08-24 00:00:00 +0000
kMDItemKind                        = "Package"
kMDItemLastUsedDate                = 2018-08-24 09:26:32 +0000
kMDItemLastUsedDate_Ranking        = 2018-08-24 00:00:00 +0000
kMDItemLogicalSize                 = 376163238
kMDItemPhysicalSize                = 376877056
kMDItemUseCount                    = 5
kMDItemUsedDates                   = (
    "2018-08-23 17:00:00 +0000"
)
 

Share this post


Link to post

Vero,

Thanks so much for your help. In my case it appears that the App Onyx (I am pretty sure) changed the file types.  I re-ran their maintenance thingy and that fixed the file types and in turn Alfred works as normal.  Sorry as this clearly was not an Alfred issue, just something I had done out of ignorance.

 

@FilchesCat I hope maybe this helps your problem.

 

Regards,

 

Applications/Google Chrome.app

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

 Display Name: Google Chrome
    Alt Names: Google Chrome.app
    File Type: com.apple.application-bundle
     Comments: 
     Keywords: 
    Last Used: 
 

Share this post


Link to post

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
×