Am I missing some thing? The layer is a text layer to be merged with the one under it
tell application "Adobe Photoshop CS5.1"
set docref to current document
tell docref
set x to name of current layer
merge art layer x
end tell
end tell
This works sometimes and then sometimes not. When it fails it is with this error
error "Adobe Photoshop CS5.1 got an error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop.
- The command “Merge Layers” is not currently available." number 8800
IS this broken?
hi,
I get this error message when the layer below is also of kind text layer (so may be it’s cause of some vectordata contained by the layer or layerset below) … try to rasterize this layer before merging …
bye
Hans
Thanks Hans
Thats cured it!! What got me is why did it work intermittently
tell application "Adobe Photoshop CS5.1"
set docref to current document
tell docref
set x to name of current layer
rasterize art layer x affecting entire layer
merge art layer x
end tell
end tell
hi,
as it always works from the GUI in PS I guess it’s kind of bug in the DOM of PS … which has minor changes from CS up to CS5, so most scripts running in CS also run in CS5 if you take care of the changes in OSX-Scripting-Terminoloy.
Have a nice day