My macos system/dotfile bootstrap process uses brew bundle
to install some apps.
This takes a while to complete, so I hoped to use an Automator Folder Action workflow to
watch the /Applications/
directory and launch a few apps that require logins
as soon as brew bundle
finishes installing them.
Automator did not do a good job of this (I did 3 test runs and it never opened each of the apps in the trigger list), but I didn't realize that until after I figured out how to actually install and activate the workflow during my bootstrap process. I wanted to go ahead and share the bits of this process in the hope someone else trying to accomplish the same will need a little less work.
Some notes:
- Numbered
<#>_
file prefixes just for ordering in gist. - I exported my workflow and saved it with the rest of my dotfiles.
- I'm also exporting the applescript to its plaintext format. If you just paste this into ScriptEditor and save, you'll end up with a
.scpt
file. - If you found this because of my higher level goal (opening apps as they install in a long-running process like
brew bundle
), see the await_app.sh file.