[AS][CC2017] Relink file in smart object layer
Hi,
I need to relink an external file, located inside a smart object layer using AppleScript.
Does anyone know if this can be done ? Currently I have ...
tell application "Adobe Photoshop CC 2017"
tell current document
set myLayer to my getLayerByName("Example")
-- Relink external file located inside smart object layer
end tell
end tell
on getLayerByName(myLayerName)
tell application "Adobe Photoshop CC 2017"
tell current document
repeat with i from 1 to count layers
set currentLayerName to (name of layer i) as string
if currentLayerName is equal to myLayerName then
return layer i
end if
end repeat
end tell
end tell
end getLayerByName
Thanks