0 Replies Latest reply on Mar 3, 2017 12:09 PM by rjh23

    Problem getting crop to work correctly with AppleScript


      I'm trying to use the crop command in an Applescript but am getting unexpected results.


      Here is the pertinent part of the script:


      crop current document bounds {leftCrop, topCrop, rightCrop, bottomCrop}


      When I run it, rather than cropping to the area enclosed by those measurements, it's cropping to the top left corner of the document. The right side and bottom of the cropped image correspond to the leftCrop and topCrop variables I'm feeding it. And the left side and top of the cropped image are both at 0. It's as if I made the cropping parameters {0, 0, leftCrop, topCrop}. Hopefully this description is clear enough.


      Can anyone offer any suggestions to what I may be doing wrong here?