Is there a way to add scripting labels to PageItems that are created in code, i.e. without using the Scripting Label panel?
My code looks like this:
var tf = b.text("Hello World", 200, 200, 300, 300);
Is there a way to add scripting labels to PageItems that are created in code, i.e. without using the Scripting Label panel?
My code looks like this:
var tf = b.text("Hello World", 200, 200, 300, 300);
I'm not familiar with Basil.js, but if you look at the InDesign reference for a
PageItem
, you'll notice that there is a function calledinsertLabel
that you can use to insert a label into aPageItem
. You might also want to look at thelabel
property.