I have hundreds of journal articles arranged in year folders with non-informative names that I need renamed to journal.v[volume].n[issue].[first_page].
This is what I'm starting with:
E:\Files\1985\4478798.pdf
E:\Files\1985\4478799.pdf
E:\Files\1985\4478800.pdf
E:\Files\1985\4478801.pdf
...
E:\Files\1985\4478823.pdf
E:\Files\1985\4478824.pdf
This is what I want:
E:\Files\1985\jrn.v41.n1.0.pdf
E:\Files\1985\jrn.v41.n1.5.pdf
E:\Files\1985\jrn.v41.n1.12.pdf
E:\Files\1985\jrn.v41.n1.32.pdf
...
E:\Files\1985\jrn.v41.n2.0.pdf
E:\Files\1985\jrn.v41.n2.7.pdf
Each of the pages in the files are labeled using the actual page number, with the cover of the journal labeled "[unnumbered]". Using Batch Processing to write a java script I can get the volume {year (folder) - first-year = volume} & first page label. I'm looking for suggestions for getting the issue numbers.
It appears that the adobe batch doesn't do global variables when running on several files in a folder since it starts back at zero with each file. I'm not sure I'd want it to because I need to restart the count in each folder. Thus I can't simply iterate over the folder adding one to a variable when each "[unnumbered]" label is found.
I could make this work by having adobe run and output "jrn.v41.n4478###.[page#]" and then run a batch...or perl script on the folder to substitute the issue iteration. However, it was bad enough to have to run a batch process on 50 folders, but to do that and run another program gets tedious.
So, it would be great if I could get the result of "this.getPageLabel(0)" outside adobe, or run the batch itself from outside adobe and finish this project in Perl or a windows batch. OR - find a way to get the issue using the java script...
Thanks in advance for your help.
Christina
George Kaiser