The easiest way would be to output it to the JS Console and then copy it
from there to a text file.
I need to do it in automation..
Well, it can't be fully automated. Acrobat will require user interaction to run the Action, as well as export the text file at the end of it.
If you want a fully automated solution it will require using a stand-alone application.
When I searching, found the below link.
In this, they said that need to call two separate actions that need to run one after the other. How to call one sequence file inside another sequence to set FileCnt?
You need to run the Action, collect the data to a global variable, and then use a separate script (executed from a menu button, for example), to generate the output file using the data in this global variable.
1 . Run Action - is it sequence or action is different?
2. Collect the data to a global variable - In the below code, dataLine gives the global data.
if(global.dataLine == "undefined")
global.dataLine = "";
var docName = this.documentFileName;
var startPgNo = this.getPageLabel(0);
var lastPgNo = this.getPageLabel(this.numPages-1);
var docPgRange = startPgNo + "-"+ lastPgNo
global.dataLine = global.dataLine + docName + "," + docPgRange + "\n";
3. separate script (executed from a menu button, for example) - What process should do using menu to do this?
1. Batch Sequence is the former name of Actions.
2. Yes, something like that...
3. This would be a folder-level script that will create a new file, create a data object, output the global variable to it and then export it.
Ok... Can you please tell me how can I call actions from folder level script.
1. Should initialize global variable in folder level script (Menu item)
2. Need to call action.
3. Write a report from folder level script.
How can I call action from folder level script to get the global variable value?