Thanks Kukurykus .. (aD = activeDocument).artLayers.add().kind = LayerKind.TEXT d = aD.info.creationDate.replace(/(\d{4})(\d{2})(\d{2})/, function(_, v1, v2, v3, v4){return v3 + '.' + v2 + '.' + v1}); s = ((h = aD.height) / 100 * 5) * (72 / aD.resolution); (tI = aD.activeLayer.textItem).contents = d, tI.size = s; (w=aD.width)>(h=aD.height)?(a=8,b=9.5):(a=6.75,b=9.75) tI.position = [w / 10 * a, h / 10 * b], col = new SolidColor col.rgb.hexValue = 'FF0000' , tI.color = col
... View more