Copy link to clipboard
Copied
I currently have a group. In this group I have a pageItem with the name Order.
I can access this with the following:
var orderItem = plateGroup.pageItems.getByName('Order');
This pageItem in illustraor has a text field. How can I change the contens of this?
I thought something like this orderItem.textFrames.contents = 'hello'
But that does not work. Any ideas on how I can achieve this?
I figured it out:
orderItem.textRange.contents = 'hi here';
Copy link to clipboard
Copied
I figured it out:
orderItem.textRange.contents = 'hi here';
Copy link to clipboard
Copied
Hi,
why not simple
var orderItem = app.activeDocument.textFrames.getByName('Order');
// or
// var orderItem = plateGroup.textFrames.getByName('Order');
orderItem.contents = "my new contents";