What is Nostr?
Dr. Juande Santander-Vela /
npub1hgu…j8de
2025-01-16 19:25:07

Dr. Juande Santander-Vela on Nostr: TIL and PSA at the same time: Today I learned that there is an `automator` command ...

TIL and PSA at the same time:

Today I learned that there is an `automator` command line too in macOS to manage workflows. More details on usage can be found with `man automator`.

As I have a couple for workflows that can create things in Jira, Jama, or Confluence, I can actually now use them from the command line like this:

```bash
echo "text to search " | automator -i - ~/Library/Services/search-in-alma-reqs.workflow
```

In fact, I could write a small function like this:

```bash
function jama_search {
automator -i "$*" ~/Library/Services/search-in-alma-reqs.workflow
}
```

And then to something like `jama_search Sys-Req-100` to find all occurences of Sys-Req-100 in the project from the command line — including opening the righ URL in the default browser.

#TIL #PSA #Automator #CLI #macOS
Author Public Key
npub1hgu7p2t6ttu9h0004zfxydrgcylnfrlwnpz9me2v9auaa5pxs9zs7gj8de