I used acrobat to export several thousand emails to a pdf portfolio. (Worked great by the way and I love the way attachments to email stay attached as links to pdf.)
I now need to count the number of documents in the portfolio.
Found this question with an answer in the forum here: How To Display Acrobat Portfolio File Count in DC?
What I did: Opened console and typed:
app.alert("This portfolio has " + this.data.Objects.length + " files attached to it.",3);
When I select the text given and use Cntrl-Enter, get this error: "TypeError: this.dataObjects is null
No document within portfolio is open, though I am seeing preview in bottom pane (which I don't know how to get rid of).
Right click on any document in the portfolio and click Coversheet. Then you run the script.
Step One: CTRL + J
Step 2: Paste Below code
app.alert("This portfolio has " + this.dataObjects.length + " files attached to it.",3)
Step 3: then click CTRL + Enter