Thanks but maybe I wasn't being clear. I have a widget working perfectly (the above was just a basic demonstration of what I'm on about).
What I'm wondering is if there's a way to call the resolved function "Open" in the run function and vice versa.
Bookmarks