Jump to content

Contacts metadata not updating until Alfred is quit & re-launched [Fixed in 4.0.7 b1126 pre-release]


luckman212

Recommended Posts

  • macOS Catalina 10.15.1 (19B88)
  • Alfred 4.0.6 b1124

 

I just noticed that Alfred doesn't seem to ever update metadata (phone numbers, labels, etc) as I am updating them in Contacts.app.  The only way I can get Alfred to refresh is to completely quit & relaunch it. I tried both with and without the "Use Spotlight metadata for searching contacts" option — same results. I don't remember this being a problem before, but maybe I just never paid attention to it.

 

Edited by luckman212
Link to comment
Share on other sites

@luckman212 Alfred doesn't cache any of this data, and operates directly with the Contacts API.

 

I've tried this on Mojave and there's no latency between changing a contact's details and the change being visible in Alfred. I'll take a look when I next use our Catalina testing Mac as well.

 

Have you tried restarting your Mac in case it's a Catalina issue that can be resolved with a reboot?

 

Cheers,
Vero

Link to comment
Share on other sites

So, I noticed this was only happening on 1 of my Macs, not the other. I couldn't figure it out so I threw the sledgehammer at it:  blew out the Spotlight index and rebuilt it. I also trashed the contents of ~/Library/Application Support/AddressBook/ and let that rebuild. After all that, Contact metadata are working normally again. Did not have to reboot (or even log out for that matter). Chalking this one up to (yet another) Catalina bug.

 

Sorry for the false alarm on Alfred! 🙃

 

Edited by luckman212
Link to comment
Share on other sites

  • vitor changed the title to [SOLVED] Contacts metadata not updating until Alfred is quit & re-launched

Sorry to bring this up again, but I am not 100% sure this is just a Catalina bug anymore. The problem is back where Alfred has stopped updating the contact metadata even though I have edited the info in Spotlight. It definitely could be a Catalina bug but- is there any way you could look into it @Vero or @Andrew ? e.g. I just edited the phone# type for this contact, and Spotlight shows the correct value ("work")

image.png.5f3789563a1ab714c2657743e61b57f5.png

 

yet Alfred still shows "home":

image.png.743acd2b31a0a79aab4a130881ebee9f.png

 

Quitting & re-launching Alfred gets it to immediately show the correct value. Hmm.

 

Link to comment
Share on other sites

@luckman212 There is one thing I could try, and that's switching to creating a new instance of the ABAddressBook instead of using the sharedAddressBook. I theorise that in Catalina, Apple may be [in a buggy way] caching the address book information for the shared instance outside of Alfred's control. Creating a new instance may have the same affect as restarting Alfred (at the expense of a little performance and memory).

Link to comment
Share on other sites

@Andrew Thanks, well that sounds interesting but if it's really a Catalina bug and you think performance will suffer due to that workaround, I could try filing a bug w/ Apple. Does it matter that I'm using a File Filter (keyword "c") to search Contacts in Alfred? (link) instead of having Contacts enabled for Default results?

 

image.png.158aaae3ecac1507d32876310e6d6131.png

Link to comment
Share on other sites

@luckman212 Alfred still access the Address Book API regardless of how you search for contacts.

 

I'm fiddling with this now, and there is a negligible affect for performance, but I don't have a currently suitable Catalina setup to see if this is fixed. I'm going to pop out a 4.0.7 pre-release in the next 10 mins, if you wouldn't mind testing and letting me know?

Link to comment
Share on other sites

  • Andrew changed the title to Contacts metadata not updating until Alfred is quit & re-launched [Fixed in 4.0.7 b1126 pre-release]

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...