property subs : {"01 Folder", "02 Folder", "03 Folder", "04 Folder", "05 Folder", "06 Folder", "07 Folder"}
set end of subs to "08 Folder"
subs
--> {"01 Folder", "02 Folder", "03 Folder", "04 Folder", "05 Folder", "06 Folder", "07 Folder", "08 Folder"}
repeat with i from 1 to count of subs
set s to item i of subs
if (s is "03 Folder") then
set item i of subs to {s, {"03.1 Folder", "03.2 Folder"}}
else if (s is "06 Folder") then
set item i of subs to {s, "06.1 Folder", "06.2 Folder"}
end if
end repeat
subs
--> {"01 Folder", "02 Folder", {"03 Folder", {"03.1 Folder", "03.2 Folder"}}, "04 Folder", "05 Folder", {"06 Folder", "06.1 Folder", "06.2 Folder"}, "07 Folder", "08 Folder"}
set item 7 of subs to {item 7 of subs, {"07.1 Folder", "07.2 Folder"}}
subs
-- {"01 Folder", "02 Folder", {"03 Folder", {"03.1 Folder", "03.2 Folder"}}, "04 Folder", "05 Folder", {"06 Folder", "06.1 Folder", "06.2 Folder"}, {"07 Folder", {"07.1 Folder", "07.2 Folder"}}, "08 Folder"}