It is the same with the script or manually. When I hit option P or menu select Go to Anything, and I paste in;
When I hit Enter, I get an error beep only.
Added: OK, now I see that you set up your Curio search with the name
curio:///Users/, I did not catch that at first. My saved search is similar but with a different search name.
name: Curio Links
I can search for
Curio Links and I can Go to Anything and put in
Curio Links and I always get the correct search results. But, I thought it would do a search of my open TaskPaper document. Instead it is only doing a search for my saved search terms. That is, it errors when I want it to find curio:///Users/.
Hope I made that a little clearer?