Hello,
I managed to update my progress bar status in real time as my app processes files and it works fine in one part of my app.
However, in the other tabs, the progress bar doesnt start until the 20th file or so, and doesnt go all the way to the end of the bar. I did set it max value to the number of files to process though… and i dont get it !
example code:
--- my code ...
set maximum value of progress indicator "progressBar" of window "Panel1" to (count of the item_list)
repeat with i from 1 to (count of the item_list)
set content of progress indicator "progressBar" of window "Panel1" to i
set contents of text field "occurrences" of window "Panel1" to "Processing item " & i & " of " & (count of the item_list) & " in this folder"
update window "Panel1"
set this_item to item i of the item_list
--- rest of my code ...
end repeat
this part of my code for example, works fine but doesnt let the progress bar go to the end of the progress bar.
what could could be the cause of that ?