Skip to main content
AG_Ps_100
Inspiring
May 27, 2019
Answered

Add a second tag

  • May 27, 2019
  • 1 reply
  • 927 views

Hello everyone,

I'm trying to add a second tag to my document, up until now i didn't have to use a second tag so it was easy using this line:

activeDocument.info.keywords = ["Above"];

but now I having some difficulties making it work. I've tried "push" and other arrays functions I know but it doesn't work, what am I doing wrong?

This topic has been closed for replies.
Correct answer SuperMerlin

   var keys =activeDocument.info.keywords;

   keys.push("new Keyword");

   activeDocument.info.keywords = keys;

1 reply

SuperMerlin
SuperMerlinCorrect answer
Inspiring
May 27, 2019

   var keys =activeDocument.info.keywords;

   keys.push("new Keyword");

   activeDocument.info.keywords = keys;

AG_Ps_100
AG_Ps_100Author
Inspiring
May 27, 2019

simple and did the job