Hi everyone!
I'll start by posting the button I've done so far, then explain what it is I'd like it to do, to see if someone can help.
@set publishdate={dlgstring|Enter publishing date (YYYYMMDD):|}
SetAttr META "createdate:{$publishdate} 00:00:00"
SetAttr META "lastmodifieddate:{$publishdate} 00:00:00"
Select NEXT
This will set the Creation Date and the Last Modified Date of a single selected file to 12 AM on the date specified in the dialog box before moving on to the next file and stopping. This works as expected, but is not exactly what I want.
Basically, I have 19 files in a directory: 18 files with a .zip extension, and a txt file called "PublishingDates.txt"
The text file lists the dates like so:
20040517
20040715
20040917
20041117
20050217
20050517
20050715
20050916
20051117
20060117
20060417
20060714
20060915
20061215
20070316
20070517
20070817
20071017
Instead of selecting each file individually and having me type in the publishing date into a dialog one by one, what I'd like my button to do is once I've selected all the files I want to modify the dates of, I can run the button and have it be able to pull the values createdate and lastmodifieddate from each line of the text file, along with a default time of 00:00:00 and apply the info from the first line to the first selected file, the info from the second line to the second file, and so on.
For example, I would select two of the zip files in the folder and it would grab the date info for them from the first two lines of PublishingDates.txt as such:
ebook1.zip
Creation Date: May 17, 2004 12:00:00 AM
Last Modified Date: May 17, 2004 12:00:00 AM
ebook2.zip
Creation Date: July 15, 2004 12:00:00 AM
Last Modified Date: July 15, 2004 12:00:00 AM
Is there a way to do this, as my button works fine as is for small amounts of zip files, but I want to make it be automatic, since the next series of books I want to do has 94 volumes and is way too tedious, time consuming, and prone to errors if typed in dialog boxes manually one by one.