Hello,
I was wondering how to edit text layers in adobe photoshop via applescript. I am trying to create multiple input boxes and paste the text from the applescript to a photoshop Text Layer. For example, I ask for an input of "Last Name" in applescript and want the text layer to paste the "last name" in photshop to the edited Last Name text layer.
I am very new too applescript so I would appreicate if the community can point me in the right direction.
I was wondering how to edit text layers in adobe photoshop via applescript. I am trying to create multiple input boxes and paste the text from the applescript to a photoshop Text Layer. For example, I ask for an input of "Last Name" in applescript and want the text layer to paste the "last name" in photshop to the edited Last Name text layer.
I am very new too applescript so I would appreicate if the community can point me in the right direction.
Code:
display dialog "Last Name?" default answer "Last Name"
set theanswer to (text returned of result)
display dialog theanswer
tell application "Adobe Photoshop CS5"
set current layer to "Last Name"
clear layer "Last Name"
paste theanswer to "Last Name"
end tell
Last edited: