I would like to have a java script which will automatically extract (only) the PDF pages with annotations/comments and combine them into a single PDF (ascending page number order) and store it in a location. If possible also for a set of PDF documents in a particular folder.
To do this for a folder of files you'll need to use Batch Processing, which is only available on Acrobat Pro. A Batch sequence is also a great place to put an Automation script.
Soon, there will be an Actions gallery on this site. Actions are the Acrobat X equivalent of Batch Processing. I've created one for the gallery that does exactly what you are asking about. Even though it's for AcrobatX, the script will work in previous versions of Acrobat, and in Standard.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script