set fruits = "Apple, Green|Strawberry, Red"
put split(fruits, "|") into fruitsComponents
repeat with each item fruit of fruitsComponents
log fruit
end repeat
output :
Apple
Green
Strawberry
Red
apparently, there’s a confusion between “|” and “,”