Hi.
I was getting the same error 'Can’t get value of attribute "AXFocusedUIElement" of process "Finder". (-1728)'.
I found that this occurs for me, when the current Finder window is set to 'View | as Columns'.
If I change the view to any other (Icons, List or Gallery), then the Workflow works.
Anyone else able to recreate this issue?
I'm running MacOS 13.5.2 and Alfred 5.1.2.
[EDIT] - also, only seems to occur on the Downloads folder, as mentioned by previous posts.
Jason.