Place text frame on the linked image...!
Hi Everyone!
Its possible to place text frame on the linked image using java script.
the text frame text is name of the linked image. anyone to help me if possible...?
Thanks in advance.
-yajiv
Hi Everyone!
Its possible to place text frame on the linked image using java script.
the text frame text is name of the linked image. anyone to help me if possible...?
Thanks in advance.
-yajiv
Hi, I rewrite this one,
var tgt = app.activeDocument.rectangles;
for (i=0;i<tgt.length;i++){
myCaption = app.activeDocument.textFrames.add();
myCaption.textFramePreferences.verticalJustification =
VerticalJustification.BOTTOM_ALIGN
myCaption.contents = tgt.graphics[0].itemLink.name
myCaption.paragraphs[0].justification =
Justification.CENTER_ALIGN;
bnds = tgt.visibleBounds;
myCaption.visibleBounds =
[bnds[0]-6, bnds[1], bnds[0]-1,bnds[3]];
}
How about it?
Ten
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.