How to capture Variable in KME?


#1

This JSX snippet returns the current Illustrator File Name to the Javascript Console, but I don't know how to capture it as a KME Variable. Can someone help me?

docName.kmmacros (2.4 KB)


#2

Just needed to change my script to:

docName = app.activeDocument.name;

and it worked.