var doc = app.activeDocument; doc.info.caption = doc.name.substring();