title: Automate Batch Script - Convert filenames to text in Photoshop
body: <p>How do you convert each filename of a bunch of files, each to a text layer (and save) in Photoshop? </p>
  
  <p>Folder 1: Hundereds of files</p>
  
  <p>Folder 2: Nearly the same files, but each with its filename plastered onto its image</p>
  
  <p>Here is a hacked up snippet. The error that I can't seem to get by is how to set the activeDocument to the currently open one. <a href="http://pastebin.com/b0fqG9v4" rel="nofollow">http://pastebin.com/b0fqG9v4</a></p>