Simple script which gives current date to a specific text layer.
Is there any simple script which gives current date to a specific text layer every time I open this project?
Thank you for your time!!!
Is there any simple script which gives current date to a specific text layer every time I open this project?
Thank you for your time!!!
evnt = 'layersFiltered'; if (name.split('Photoshop').length - 1 && !$.getenv('not'))
$.setenv('not', 1), notifiers.add(evnt, File($.fileName)) else if(typeIDToStringID(arguments[1]) == evnt
&& (aD = activeDocument).name == 'Project.psd' && (tI = aD.artLayers.getByName('Date').textItem)
.contents != $.getenv('Date')) $.setenv('Date', tI.contents = new Date().toLocaleString())
Save above script to: C:\Program Files (x86)\Common Files\Adobe\Startup Scripts CC\Adobe Photoshop
Then relaunch Photoshop, and remember it works only for document named 'Project.psd' until you change its name in the code. The text layer named 'Date' should not be in any layer set, but directly in document at any position. btw I used date with time to let script detect your project not once a day, but any time of any day.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.