Jump to content
luckman212

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

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

Share this post


Link to post

@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

Share this post


Link to post

Sure I can try a restart, but since a quit / relaunch of Alfred "solves" the issue (at least until the Contact metadata is updated again) it seems like (bug or not) something the Alfred could work around triggering whatever function is called during its startup.

Share this post


Link to post

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

Share this post


Link to post

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.

 

Share this post


Link to post

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

Share this post


Link to post

@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

Share this post


Link to post

@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?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...