Here is a Python script to do that ...
Assuming you have Python installed on your machine, you can use the attached script to set the author field (EXTH 100) to whatever you like. Note that the author value should be enclosed in quotes if it contains embedded spaces. For example
set_author.py nyt.mobi "Sunday, December 22"
will set the author to today's date in the file nyt.mobi
There's not much in the way of error checking so if you give it a non-existent file it will just crash (harmlessly, of course).
UPDATE: I just noticed you are using EPUB. This only works for MOBI files. Sorry, I don't use EPUB myself so I don't have any script utilities to do this.
In case anyone is wondering why this might be useful for MOBI, when you read news files using the Kindle for iPad app there is no way to distinguish files with the same name but different publication dates. I use the author field to store the publication date since having "calibre" in all of the files as the author isn't very useful, but since the Kindle for iPad app displays the author and can sort by author, it allows me to see the publication date in the list view.
Last edited by nickredding; 12-22-2012 at 05:25 PM.
|