1

How could I select textframes in illustrator with script?

Here is my code:

var doc = app.activeDocument;
var nameKorText = doc.textFrames.getByName('nameKor'); 
nameKorText.contents = "test";

I have no idea how to make this code work.

Please help me.

enter image description here

  • The automatic name is not actually the elements name (the elements name is empty). Its just the GUI showing you something else than the name for default values. So if you want to access it by name you need to rename it or search by text contents. Since its not clear what you want so i can not answer – joojaa Jul 12 at 16:53
  • Thank you so much @joojaa :) – Yann Noh Jul 13 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.