It's a short list, so I know I could tear it apart and do the math for each x coordinate. But, I want to practice using repeat. It has been a while since I've used it and I don't know what kind of repeat I should use. My points list looks like this:
44,0
0,0
44,44
0,88
44,88
I've tried using repeat with chunk expressions to identify the first item of each line.
My attempt so far: It repeats 5 times like I want, but only for item 1 of line 1 yielding five copies of -44. So, it's doing what I'm telling it. It's just not doing what I want:) To fix this, I need help to figure out how to move/step to the next line in turn. Also, I'll have to assemble the x's and y's back into a points list.
Code: Select all
set the itemdelimiter to comma
Put tLeftGutterPointsList into temp
repeat with i = 1 to the number of lines in temp
put item 1 of line 1 of temp * (-1) after tRightGutterPointsList
end repeat
put tRightGutterPointsList into fld "RightGutterPointsList"