Hi.
I wanted to make a little program with a progess bar. After running into a few problems, I decieded to code the most simple program I could think of. It still didn’t worked. Then I came here, read for about 3 hours every post, tried it, and it still wouldn’t work…
Here it is. Would some put an end to my miseary already, please…
The script below is the part in the program. The window itself only has the bar and a text.
on launched theObject
set anzahlTemp to 10
set maximum value of progress indicator "Progress_Bar" of window "Progress_Test" to anzahlTemp
--set indeterminate of progress indicator "Progress_Bar" of window "Progress_Test" to false
--set uses threaded animation of progress indicator "Progress_Bar" to true
start progress indicator "Progress_Bar" of window "Progress_Test"
repeat with a from 1 to anzahlTemp
set contents of text field "Progress_Text" of window "Progress_Test" to "Bearbeite " & a & " of " & anzahlTemp
set contents of progress indicator "Progress_Bar" of window "Progress_Test" to a
update window "Progress_Test"
delay 1
end repeat
quit
end launched