2 Replies Latest reply on Feb 29, 2008 2:33 PM by (Olav_Kvern)

    Applescript Creating a graphic rule with multiple anchors

    Level 1
      What is the syntax for creating a rule such as you would create with the pen tool in CS2/CS3?

      I am trying to place a rule around a group of graphic cboxees. I have the anchors for the rule, determined by examining the bounds of the rectangles, but I can't determine the syntax to create the rule.

      I'd think something like:
      tell application "Adobe InDesign CS2"

      tell document 1
      tell page 1
      make graphic line at beginning with properties {label:"ruleout", stroke color:"Black", stroke weight:2, entire path:{20, 20, 80, 80, 100, 100, 150, 150}}
      where the anchors are y,x in the entire path property. I've been trying to get the properties of a line I did create with the pen tool, but can't find the anchors buried anywhere within the properties.

      Anyone have a tip?