$ 0 0 HTML JS no.Photoshop JS yes. Put the $.writeln code in the Photoshop JSX code and call it from the HTML JS.