Most people use "docRef" to refer to app.activeDocument, rather than writing that out all the time. So to select all, you would really only need:
var docRef = activeDocument;
docRef.selection.selectAll();
Most people use "docRef" to refer to app.activeDocument, rather than writing that out all the time. So to select all, you would really only need:
var docRef = activeDocument;
docRef.selection.selectAll();