Hi all,
In "native" Applescript there's a implementation of ProgressBar that's very handy but only displays as a window if the script is saved as an applet.
In Foundation framework, there's a class named NSProgress: https://developer.apple.com/reference/foundation/nsprogress?language=objc
This class seems to correspond exactly to the "native" fonction.
Is it usable to build a progress indicator window?
My aim is to have a script library to witch I can refer from a compiled or bundled script, as I do for alerts.
I'm able to make the NSProgress instance:
set aProgress to current application's NSProgress's progressWithTotalUnitCount:10
tell aProgress
its setCompletedUnitCount:1
its setLocalizedDescription:"Main description"
its setLocalizedAdditionalDescription:"Additional Description"
end tell
Can someone help me to build the window?
TIA