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?






Posted on Sep 2, 2023 7:23 PM

Reply
1 reply

Sep 3, 2023 2:57 PM in response to madu007

Hello madu007,


It looks like you want to see the progress of long-running scripts that are running on your Mac. The information on this page may help you out: Mac Automation Scripting Guide: Displaying Progress. This page provides information for how to display periodic dialogs or notifications for scripts that are running.


If this is not what you are looking for, you may want to provide more details and specifics on what you're hoping to see.


We hope this information helps you out.


Cheers!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automator: How to update progress on the script so that cog-wheel show the status

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.