I'd like to thank xbytor and Michael Hale for what I've learned today. I just started using jscript in Photoshop. This morning I didn't know what the Script Listener was, or the difference between DOM-based and Action Manager code. Thanks both of you for being so clear in what you write. It's extremely helpful.