I am trying to get 3 specific items from a list.
My code:
set page_sequence to the last word of (every page item of every page of document 1 whose label is "SPECS")
Results in a list:
{“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “11”, “12”, “13”, “14”, “15”, “L1”, “L2”, “L3”, “L4”, “R1”, “R2”, “R3”, “R4”, “R5”}
This list varies, and I want to set a variable three times.
I want 1-15 to be variable_1, L1-L4 to be variable_2, and R1-R5 to be variable_3.
I am just now trying to learn repeat loops, and I just can’t seem to wrap my head around how they work. I keep reading tutorials and explanations, but I can’t get it. I have Dyscalculia, so that doesn’t help me AT ALL, but I’m not doing that bad.
This is all in Indesign, and I need 3 different sections to be created in the document, according to whatever page_sequence returns.
Anyone willing to hold my hand and walk me through this?
I know this is reasonably simple, but I think I’m burned out.