SPLIT STRING
Ive been using the code below but it does not do well at all.
display dialog my splitText_section("one two three four five six seven", 2) ----NEEDS FIXED --- does not work with vety well on splitText_section(someText, w) -----(string, sections) set prevTIDs to AppleScript's text item delimiters set AppleScript's text item delimiters to " " set output to text items of someText set AppleScript's text item delimiters to prevTIDs set output2 to "" set x to 0 set y to 0 set cnt to count item of output set partz to cnt / w as string set partz to round partz rounding up repeat set x to x + 1 set output2 to output2 & item x of output as string set y to y + 1 if y < partz then set output2 to output2 & " " if x = cnt then exit repeat if y = partz then set output2 to output2 & return set y to 0 end if end repeat return output2 end splitText_sectionimac, Mac OS X (10.5.8)