When I create apps with Automator, they run with the little cog that appears in the top right.
When I click the cog it says "0% completed (Run Shell Script)".
This feature is documented sparsely by Apple and I can’t locate a third party example of this and wondered if I can incorporate progress in the menu bar for my scripts.
For example, I run a rsync daemon to backup data every week.
I have an automator app to run this zsh script.
#!/bin/zsh
echo "Starting. $(date)" >> /Users/admin/Scripts/Automation/rsync/rsync.log
open /Users/admin/Scripts/Automation/rsync/notify_starting.app
rsync -r --delete --exclude 'Data 1' --exclude 'Data 2' /Users/admin/Documents /Volumes/TOSHIBA/Backups/rsync
rsync -r --delete /Users/admin/2022 /Volumes/TOSHIBA/Backups/rsync
rsync -r --max-size=100m --delete /Users/admin/Desktop /Volumes/TOSHIBA/Backups/rsync
rsync -r --delete /Users/admin/out_data /Volumes/TOSHIBA/Backups/rsync
rsync -r --delete /Users/admin/WESTERFIELD /Volumes/TOSHIBA/Backups/rsync
rsync -r --delete /Users/admin/images/2022 /Volumes/TOSHIBA/Backups/rsync
rsync -r --delete /Users/admin/Scripts /Volumes/TOSHIBA/Backups/rsync
rsync -r --max-size=100m --delete /Users/admin /Volumes/TOSHIBA/Backups/rsync
echo "Completed. $(date)" >> /Users/admin/Scripts/Automation/rsync/rsync.log
echo "\n\n" >> /Users/admin/Scripts/Automation/rsync/rsync.log
open /Users/admin/Scripts/Automation/rsync/notify_completed.app
It takes a while to run, and slows the computer down a little. It would be really nice to see how far it's progressed. I get it might not be possible to know exactly, but if I could even know which line of the rsync commands it's reached that would be a start.
Is it possible to change my script to allow for the progess of the programs to change the percentage other than running and done?