Automator: How to update progress on the script so that cog-wheel show the status
I noticed Apple scripts have the status update feature: Mac Automation Scripting Guide: Automating the User Interface
This is quite useful if I could update the progress status as a long-running script (bash/zsh script) getting executed.
At present my script is runs through the Automator, and status looks 0% all the time.
In other words, "0% completed" wording is what I see for the entirety of the running time of the script.
I tried
set progress total steps to 10
set progress completed steps to 5
also:
osascript -e "set progress total steps to 10"
osascript -e "set progress completed steps to 5"
expecting something like this:

But no luck :-(
Anyone got a solution for this?