Thanks I'd tried that, but I just discovered my mistake, I was running it as a tool rather than an action. Forgot their was two ways to use it, cheers, gubar.