I need to rename “Original Layer” to Original Image" When this layer exists. In photoshop
How would I do this?
This is part of a larger script.
tell current document
--If the quick mask mode has been left on then delete the channel Quick Mask
if (quick mask mode) then delete channel "Quick Mask"
if layer "Original Layer" then make "Original Layer" with properties {name:Original Image}
end tell
[center]error “Can’t make «class cCLr» 1 of document "DE00ER515.psd" of application "Adobe Ph[/center]otoshop CS6" into type boolean.” number -1700 from «class cCLr» 1 of document “DE00ER515.psd” to boolean
tell application "Adobe Photoshop CS6"
tell current document
if (quick mask mode) then delete channel ¬
"Quick Mask"
if layer "Original Layer" then ¬
set OriLayer to "Original Layer"
set OriLayer to make layer with properties {name:"Original Image"}
delete layer "Original Image"
end tell
end tell
tell application "Adobe Photoshop CS6"
tell current document
if (quick mask mode) then delete channel ¬
"Quick Mask"
if (exists layer "Original Layer") then ¬
tell layer "Original Layer" to set name to "Original Image"
end tell
end tell