aaa,bbb,ccc#ddd,eee,fff -- note the "," and "#" separating different portions of each string
ggg,hhh,jjj#kkk,xxx,yyy
Not sure what to call them, ( "item1.item2...")? So you could (pseudo):
Code: Select all
get theAboveText
set the itemDel to comma
set the item2Del to "#"
repeat with x = 1 to the number of lines of it
repeat with y = 1 to the number of items of line x of it
repeat with z = 1 to the number of item2 of item y of line x of it
put item2 z of item y of line x of it & return after temp
end repeat
end repeat
end repeat
I admit the naming scheme ("item2") is awful, but the concept seems like a winner. It would be as if not only could you delimit by items, but also by "buckets", "packages", "parcels" and "trainLoads":
Code: Select all
answer parcel 2 of item 3 of bucket 4 of yourString
Craig Newman