Thanks Rich, that looks like it might just do the trick - especially with that bit in the last reply in the thread.
I don't know why I didn't see that in my previous searching.
I probably won't be able to test it until morning, but I'll post result when I do.