Progress Reporting - OSX System Updates

All,

I would like to utilize Applescript’s Progress Reporting system to track the progress of OSX updates with the command:

do shell script "sudo softwareupdate -irv" with administrator privileges

So far I have (though this may be completely wrong):

set Updates to (do shell script "sudo softwareupdate -irv" with administrator privileges)

set progress description to "Installing OSX Updates"
set progress additional description to "Please Wait..."
set progress total steps to Updates


Updates

I know this is wrong because “progress total steps” has to be an integer, any help here is greatly appreciated.

Thanks

The progress approach depends on your regularly updating the values. That’s not going to work with a do shell script command like that, because you can’t update the values until the do shell script command has finished.

hmm, ok. makes sense. Could i set the progress bar to repeatedly scroll until the shell script is finished?

I suspect the best you could do is set progress total steps and progress complete to the same value. But that might just be confusing. You might do better looking for one of the scriptable progress apps.