I took a look at Photoshop CS5 Scripting Guide and Photoshop CS5 JavaScript Reference, but I couldn\'t find out a method to write text to a plain text file. Is there any way to
File system access is documented in Adobe's JavaScript Tools Guide (PDF).
Download the PDF file and check out the "File System Access" section.