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 1:Console:Exec undefined
No document within portfolio is open, though I am seeing preview in bottom pane (which I don't know how to get rid of).