@gingerbeardman Thanks for this great workflow, this is exactly what I needed!
Are there any new developments since?
I was looking at your script and have a suggestion which might be less prone to changes in the UI.
You could replace the search/input part:
set value of text field 1 of group 2 of toolbar 1 of window "Keychain Access" to q
click button 1 of text field 1 of group 2 of toolbar 1 of window "Keychain Access"
To something like this, using the menu bar instead:
click menu item "Find" of first menu of menu bar item "Edit" of first menu bar
keystroke q