Action to save the days date in file name using one PS file.
Copy link to clipboard
Copied
Hi, I have created an action in PS CC to save a file in 5 different locations. In some of the locations I need the days date added to the file name. I am using Image Processor Pro which adds a date into the filename, but it keeps saving the date the PS file was created. The PS file is used daily to do this task, and we need just one PS file to open everytime. I have tried adding an action before this one which saves a new copy of the PS file in a different location with a different name and then plays the action to save into the 5 locations, but it keeps naming the file with the date the original PS file was created, and I need the name to be the days date, or the date the file is modified, which would be the days date. Any help on this would be much appreciated.
Thanks,
Matt
Explore related tutorials & articles
Copy link to clipboard
Copied
Are you running the Image Processor Pro more then once in a day to create the dated files in the output folder. The Image Processor will only write new files. If the dated file exists in the output folder a new dated file will be written with a serial number added to the files name. The Date also as you wrote seems to be the source file creation date. Not the Current date.
Perhaps X would be open for a request for a current timestamp or data stamp namming option send him a request.
If you copy the your source images to a new temp folder and use the Image Processor on those new files the dated added to your output files should be the current date.
When you save a file the date modified get updated the date created remains the same. File have several dates recorded in the files system. The Creation date is what IPP uses. So you would need to do a copy to create a new file.
Copy link to clipboard
Copied
Moving to scripting forum. I would agree with JJMack about modifying the Image Processor Pro script. That is something X could do, if he wants to.
Copy link to clipboard
Copied
That is something X could do, if he wants to.
Yeah. I can add an IPP option that can be set in the script. I had thought about this and left this note in the code:
// Should this be the file-created or the file-modified date???
var cdate = (file.exists ? file.created : new Date());
var nm = fnOpts.format(File(fname), cdate);
I'll probably move the option to a UI menu widget (Date Created, Date Modified, Current Date) in a later rev.
I'll try to get this out in the next day or two.
-X

