Skip to main content
kevink43689030
Participant
September 20, 2016
Answered

Help for a Newbie in a hurry - Applescript scripting

  • September 20, 2016
  • 2 replies
  • 456 views

Sorry, I have a deadline and I need a quick example to get going with an InDesign Applescript script.

ALL I want to do is to set the width the left hand edge of all selected objects on my active spread to a given value.

If someone could give me this leg-up, I would be eternally grateful, as I have many many pages to process in this way..

This topic has been closed for replies.
Correct answer Kevin Parrott

hi

something like this may help

tell application "Adobe InDesign CC 2015"

    set theSel to selection

    tell active document

        repeat with i in theSel

            tell i to set geometric bounds to {0, 0, 50, 100}

        end repeat

    end tell

end tell

2 replies

Loic.Aigon
Legend
September 21, 2016

Get in touch with editor and let him know.

kevink43689030
Participant
September 20, 2016

I should have written

ALL I want to do is to set the width AND the left hand edge of all selected objects on my active spread to a given value

Loic.Aigon
Legend
September 21, 2016
kevink43689030
Participant
September 21, 2016

Thanks so much for that. That looks like a great tool, but I have tried it and the 'move' function only seems to work with the spread origin ay top left corner. I am using a different origin....

I can get around this with the Equaliser, but any chance of a fix?