You might take a look at @_jims' macro:
I'm not a Spaces user at all (if I can't see all my windows, I get lost :)), but if I were, his macro looks like it'd probably be a very useful tool. Note that I don't know if it helps with your particular needs or not, so you'd have to do some reading/testing to find out.
-rob.