Mac or Win?
I tried both a script file button and a script button and it but it works as expected.
Hmmm, just tried again with a new panel and new PSD.
Make sure the PSD open has no history. i.e. Open Psd, then click button on panel
wow, ok that worked, silly windows. Thanks for the link