cs4 bug with selectAll/contract breaks script

Bugs and Anomalies in Photoshop excluding Scripting and Actions

Moderators: Tom, Kukurykus

sabru

cs4 bug with selectAll/contract breaks script

Post by sabru »

I have a number of scripts that break in cs4 because they try to selectAll and then contract/feather/expand etc.. Has anyone run into this here? I tried to find it in the forum with no success.

Tried to correct it with a selection array based on the corners of the canvas, but broke again when a function tried to use invert and expand to exclude areas from the selection, as below;

selectColorRange/invert/expand/invert - yealding a full selection

I can't see this being considered an addition to photoshop by adobe so I am assuming it's a bug. Any help would be greatly appreciated. Thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

cs4 bug with selectAll/contract breaks script

Post by Mike Hale »

There is a known issue when the selection is the same as the document bounds. I will leave it up to Adobe to call it a bug. Because in the GUI all menu items under Select-Modify are grayed out except for border, it may be that is expected behavior.

For contract you can use scriptlistner to transform the selection and scale down.

For feather you still have to transform to get the selection away from the edge of the canvas. Once that is done you can feather.