Use javascript in Photoshop to modify the contents of a text item
问题 I know how to set the contents of a textitem in Photoshop using code like this var al = doc.activeLayer; if(al.kind == LayerKind.TEXT) { //get the textItem var ti = al.textItem; //change contents ti.contents = "stackoverflow"; } However is it possible to modify just part of its contents and apply formatting. For example in the work "stackOverflow" I just want to select the first letter and make the font 30px and leave the rest unchanged? 回答1: There's no easy way to do that to my knowledge.