Answered
stroke of the textframe is not visible when image was aligned to left of the textFrame
How to make the left side frame visible when image was aligned to left edges and vertical center of the page. I tried by aligning the stroke of the textframe to outside but that also not working.Please suggest a way!
var myDoc =app.activeDocument;
var mypage = myDoc.pages.item(0);
//var myImg = mypage.place(filesB[0]);
var imgok =app.activeDocument.allGraphics;
app.select(imgok[0]);
var sel = app.selection[0];
var txtFrame = mypage.textFrames[1];
myDoc.align(sel.parent, AlignOptions.LEFT_EDGES, AlignDistributeBounds.KEY_OBJECT, txtFrame);
myDoc.align(sel.parent, AlignOptions.VERTICAL_CENTERS, AlignDistributeBounds.MARGIN_BOUNDS);
txtFrame.strokeAlignment = StrokeAlignment.OUTSIDE_ALIGNMENT; //outside alignment 
