I would like to retrieve and use the Modification Date / Last Modified Date of a file as a SmartName. How can I do that?
This can be achieved by setting up a Script SmartName with the following content:
var localfile = "<<filespec/>>".replace("file://", "//");
var file = new java.io.File(localfile);
var dtmModified = file.lastModified()
To get a readable time format, go to Formatting Options... and do the following:
Esko does not provide or support Scripts or guarantee the expected functioning of user scripts. This page merely serves as a tip.
Automation Engine all versions
11 Jan 2019
Note: This is an anonymous survey. If you need help from Esko Support, register a Support Case here.