See if this helps, within the “Mac Automation Scripting Information” beneath the part “Interacting with Customers” lists Displaying Progress:
- Reset the progress info
set progress complete steps to 0
set progress accomplished steps to 0
set progress description to ""
set progress extra description to ""
So, as you progress by means of the script, it seems altering these parameters assist present the progress within the menu bar. I have never accomplished my testing on this. However, that is what I will be doing.
—
Since I wrote the above reply, I attempted it myself. In case you have entry to working Apple Script, I believe nonetheless it’s legitimate (due to this fact I will probably be testing it additional myself).
Nevertheless, discovered a fast win too:
proportion="10%"
counter=2
osascript -e "show notification "script accomplished: ${proportion}" with title "Script ${counter} progress""
Right here I’ve used two variables. Be at liberty to regulate to your wants. Variables are elective. However I believed it might be helpful.
Secret sauce is the osascript
command. You’ll be able to go the script command with the -e
swap. And get that to run your show notification
, which isn’t essentially the most elegant. However with out having to peak on the logs, you may see one thing round within the GUI now, when you work on different necessary duties.
Once more, to simplify, the bare-bone command would look one thing like:
osascript -e "show notification MyMessage with title MyMessageTitle"
A bit extra full model would appear like:
osascript -e 'show notification "All graphics have been transformed." with title "My Graphic Processing Script" subtitle "Processing is full." sound identify "Frog"'
Hope this helps a bit.