Hi Folks,
is it possible to write the results of a repeat loop into a list and then read from the list into a scroll view?
Thanks for any suggestions on how to solve this…
repeat
set xstr to "at+cmgr=" & theNumber & return
serialport write xstr to portRef
delay 1
set theNumber to theNumber + 1
set read_numb to serialport read portRef
if read_numb does not contain "REC READ" then exit repeat
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "\"" -- again, quotes escaped
set nummer to text item 4 of read_numb
set AppleScript's text item delimiters to tid
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to "\"" -- again, quotes escaped
set text_messages to text item 7 of read_numb
set AppleScript's text item delimiters to tid
set sms_show to "SMS #: " & theNumber & " gesendet von: " & nummer & return & text_messages
delay 1
set contents of text view "text" of scroll view "text" of tab view item "Inbox" of tab view "tab" of window "main" to sms_show
end repeat
Best regards,
Stefan