I am stuck in the first stepts of something that should be fairly easy but I cannot find the appropriate way to do it.
I have a textfield containing five paragraphs. I need the application to go over that textfield and copy the first sentence of each paragraph in five empty textfields.
My first problem is that I cannot even identify the paragraphs. This is what I wrote
Code: Select all
on OpenCard
put the text of field "Text2" of card "text" into tText
set the itemdel to cr
put the number of items in tText into tPar
So, my question is, how do I get the number of paragraphs? And if setting the itemdel to cr is giving me the number of sentences, could I use that information to select only the first sentence of each paragraph?
Maybe there is an easier way to do it and I am just making it more complicated that it is

Thanks
Marta