Basic AppleScript Question


i have photoshop file i'm trying script. there multiple layers , i'm trying select layers i'm starting use applscript photoshop. there few examples of code , need help.

 

tell application "adobe photoshop cs4"

activate

set docref to the current document

tell docref

set current layer to layer "bg"

end tell

end tell

when try run script above following error:
adobe photoshop cs4 got error: can’t set current layer of document "posters.psd" layer "bg" of document "posters.psd".
i have layer called bg, why getting error? i'm sure it's simple, abode scripting guide no help.
thanks

i see nothing wrong in syntax works expected me in cs2 on leopard mac… firstly layer in question top level layer ie. not nested down in layer sets?



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい