1

At this link:

https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/DisplayProgress.html#//apple_ref/doc/uid/TP40016239-CH37-SW1

We see that there is a progress bar. I have been unable to create it. Is it deprecated?

enter image description here

UPDATE: Unable to change anything here:

enter code here

1 Answer 1

3

Please be aware that the link you posted refers to Script Editor, not Automator.

In Script Editor (programmed in either AppleScript or JavaScript) this is totally possible, just try the AppleScript sample code at the end of the developer article (open in Script Editor, save as application, run).

In Automator, only the progress of the respective steps within the Automator workflow can be shown (a rotating cog wheel or progress circle in the menu bar).

6
  • thanks for the clarification. Is there a way to add scripts as a quick action item? or is that only within the confines of automator?
    – user321627
    Jul 7, 2020 at 5:36
  • You generally can (basically by inserting AppleScript code as an action in Automator), but the same limitations (no user interactions like dialogs from the AppleScript code fragments) still apply. Please see here for more info: apple.stackexchange.com/questions/100642/…
    – Gummibando
    Jul 7, 2020 at 7:23
  • What do you want to achieve? Where should the action/automation happen/appear? Finder context menu, menu bar, Services menu? AppleScripts can appear in the Finder menu bar, for example. Or be auto-invoked as Folder Actions (not sure if this still works in 10.15, though, haven't used these in a while).
    – Gummibando
    Jul 7, 2020 at 7:27
  • I have applescript that uploads a file via cURL. Then, I have a bash script that parses and reads the curl output to get the progress so far. I would like one of two options. The first I tried was to have a display notification tab popup showing the moving blue progress meter. The second is to have the gear icon on the menu bar show a completing circle corresponding to the progress so far. In both, I am unable to modify or am not even sure how to modify it. I've included a picture of what it shows above.
    – user321627
    Jul 7, 2020 at 8:43
  • @user321627 According to your use case, Platypus is probably better suited. Platypus wraps (command line) scripts – w/o the need for an AppleScript wrapper – into a Mac application/droplet/menulet, including user interactions, graphical feedback (progress bars) etc. It's free/open source and has extensive documentation. github.com/sveinbjornt/Platypus
    – Gummibando
    Jul 7, 2020 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .