How do I animate a determinate progress indicator?

Thanks Shane, that made a difference.

I altered my script to bind to a Property value as your example does, and it still did not scroll smoothly unless I put in the displayIfNeeded. It simply jerked from one handler to the next.

Putting the time delay in has made it scroll smoothly, and with animation, without the extra routines.

However the animation stalls in the few places where the script handlers are working without calling for an update. Is this normal? I thought Apples installers kept animating even when the progress was stopped briefly.

Regards

Santa

Yes, it’s normal – apps tend to do things asynchronously or in separate threads when they’re time-consuming, but we don’t have that luxury in AS. You could try setUsesThreadedAnimation_(true), but the documentation suggests this might slow the app down.