Resize item that works like transform tool
I'm looking for an example script that can resize a selected object based on a certain boundary (e.g. the top boundary). As I understand, there is a built-in function to set the scale, but it is not the same. Here is an example of the transformation I'm looking for.
And of course, the object can be a clipping mask containing objects that are larger in size than the selected "external" object.


