Skip to main content
September 4, 2013
Question

Applescript user input crop placement

  • September 4, 2013
  • 1 reply
  • 935 views

Hi,

I have been searching for a solution to this for a while but cant find one.

I am creating a semi automatic image editing script using applescript.

I would like the script to run up until it reaches the crop action. then it creates a 1000x1000px crop box but lets the user position this box once the user hits enter and the crop is made the script carries on running.

The only kind of input i can find is dialogs.

Any help would be very much appreciated.

Kai

p.s I am using CC

This topic has been closed for replies.

1 reply

Inspiring
September 4, 2013

Yes this is possible I have done this in the past when I used AppleScript… You will need to use the do javascript command and pass it a string or file…

The code to do this can be recorded with the scriptlistener plug-in you just need to set the dialog boolean to ALL

Im at work so I don't have my old code to hand… it may be here in an old post though

September 4, 2013

Thanks mate ill give it a shot!

JJMack
Community Expert
Community Expert
September 4, 2013

You can easily create interactive cropping actions as well using a Photoshop action in your apple script after your script sets the 1000px by 1000px selection.. A single transform selection step rotated 180 degrees with the action step dialog turned on should do.

JJMack