I found this script to create a non-printable path for my artboard.
function Path()
{
var boxHeight = 611.999; //set this to whatever you like - value is in points.
var blackColor = new GrayColor();
blackColor.gray = 100;
var doc = app.activeDocument;
var pages = doc.artboards;
for(i=0;i<pages.length;i++){
var pageDims = pages[i].artboardRect;
var head = doc.pathItems.rectangle(pageDims[1],pageDims[0],pageDims[2]-pageDims[0],boxHeight);
head.stroked = false;
head.filled = false;
}
}
make_Path();
Issue now is i am not able to apply this for a batch function( i have around 30000 files to finish).
The script is not recognised in "insert menu" in action command.
the other option i placed the script in presets\en_In\Scripts folder so that it appears as a menu, even then it was not recognised.