Actually, I had begun making my own simple app for bringing a chosen application’s window to the front. But, I’ll try your app if you’re working on it anyway and test a beta if you make one. You’re right about how different applications handle their windows. It can get complicated. Using the spaces sounds .
I hoped that Pike did work for you when I had fixed the issue with Smile. Well, I’ll have to go back one more time and test for scriptability as well. (So you only get scriptable apps.).
You can just use Pike as a starting point for your own. It would be interesting to see what you come up with.
(One thing I haven’t implemented, is to look for tabs in those apps that supports tabbed windows, like TextWrangler, Script Debugger, Safari and So on. (I have another solution for Safari, but I haven’t made that script to jump to windows in other spaces yet.