I have been using a stack of recent items in my dock for some time now, following the instructions here. Since upgrading to macOS Catalina, I've noticed that the stack has disappeared from my dock. I've tried re-instating it by using the code supplied at the aforementioned site (code included below), but to no avail (no error messages or anything, and nothing changes in the dock). Is anyone aware of a way to reinstate this or an equivalent alternative? I have looked at using a recent folder by creating a smart folder, but this doesn't appear to enable me to limit the number of items included.
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
(Note that I did include the killall function following this as well, so it's not a matter of restarting the dock)