I have a question on you. I need crop document by transparent pixels.
But I don't know, how to do it.
Document has function crop but it need width and height.
Do you know function with transparent pixels??
Than you Domaneni
Use the Trim command.
Here is an example.
app.activeDocument.trim ( TrimType.TRANSPARENT );// assumes you want to trim all edges
Thank you and i am apologize that i did not see that function. Now I look like idiot