4 Replies Latest reply on Mar 28, 2011 1:25 PM by dylw

    Applescript: Corner Options (Am I mad or did I find a bug?)

    dylw Level 1

      I am updating an AppleScript that rounds the corners of page items from CS4 to CS5, now I understand that you need to tell every corner of a rectangle what to do now in CS5, but what I don't get is the fact that AppleScript will not let me Compile the statement: set the bottom right corner option to rounded corner.

       

      I can't work out if this is a massive FAIL on my behalf or a bug. The code I have is:

       

      set myDoc to the active document

      tell myDoc

      set myRectangle to make rectangle with properties {geometric bounds:{50, 50, 150, 150}, fill color:"Black"}

      tell myRectangle

      set the top left corner option to rounded corner

      set the top left corner radius to 5

      set the top right corner option to rounded corner

      set the top right corner radius to 5

      set the bottom left corner option to rounded corner

      set the bottom left corner radius to 5

      --set the bottom right corner option to rounded corner

      set the bottom right corner radius to 5

      end tell

      end tell

       

      The script works fine if I comment out "set the bottom right corner option to rounded corner" but the moment I activate the statement the script fails.

       

      Please see if this works for you and if not, I guess I need to file a bug report.

       

      Thanks in advance

       

      Dylan