Skip to main content
j.khakase
Inspiring
March 23, 2023
Question

How to replace text at selected text frame with sequence

  • March 23, 2023
  • 1 reply
  • 440 views

I have multiple artboards  with text frame, need to replace text at selected text frame with sequence

 

This topic has been closed for replies.

1 reply

Disposition_Dev
Legend
March 23, 2023

first identify the textFrames you want to input information to. The easiest way is to name them, or put them on their own layer.

then loop those textFrames and update their "contents" property to match the required data.

 

var myTextFrame = app.activeDocument.textFrames[0];

myTextFrame.contents = "Hello World";

j.khakase
j.khakaseAuthor
Inspiring
March 24, 2023

I am expecting to get text either from copied or from Notepad file to replace at selected text frames which I have selected. they are on indivisual layers