Copy link to clipboard
Copied
app.activeDocument.activeLayer.textItem.contents = "Photoshop\r2025";
var AB1 = File("C:/Users/Administrator/Desktop/1.txt");
AB1.open("r");
var AB1sz1 = AB1.read();
app.activeDocument.activeLayer.textItem.contents = AB1sz1;
It works for me without any problems.
Before
After
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Try
1.txt = Photoshop%u000d2025
and change the last line to:
app.activeDocument.activeLayer.textItem.contents = unescape(AB1sz1)
untested, sent from mobile phone
Copy link to clipboard
Copied
var AB1 = File("C:/Users/Administrator/Desktop/1.txt");
AB1.open("r");
var AB1sz1 = AB1.read();
app.activeDocument.activeLayer.textItem.contents = unescape(AB1sz1);
Sorry, it still doesn't work. Are there any other methods? Thank you.
Copy link to clipboard
Copied
It works for me without any problems.
Before
After
Copy link to clipboard
Copied
I’m very sorry, I forgot to change it to this symbol: %u000d in the text. Thank you, I really appreciate it. It works now. You’re truly awesome!
Copy link to clipboard
Copied
I already suspected that.
😉
I'm glad it's working for you now.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now