Naszóval:
docRef = app.activeDocument;
textColor = new SolidColor;
textColor.rgb.red = 255;
textColor.rgb.green = 255;
textColor.rgb.blue = 255;
text = Date();
textLayer = docRef.artLayers.add();
textLayer.kind = LayerKind.TEXT;
textLayer.textItem.contents = text;
textLayer.textItem.position = Array(100, 100);
textLayer.textItem.size = 48;
textLayer.textItem.color = textColor;
Ez kiteszi a dátumot a jobb felső csücsibe egy új text layerre.
Ma pl. ezt írja: Fri Mar 30 2007 16:58:52 GMT+0200
Ha finomabbra szeretnéd hangoli itt van info. a javascript Date() objektumról:
http://www.w3schools.com/jsref/jsref_obj_date.asp
Sok sikert!