Wait Until Application (Exporter for Apple Notes) Finished

Hi,

I have a macro which exports my Apple Notes on a regular basis using Exporter (‎Exporter on the Mac App Store) to markdown format.

The macro works, but I would like add the exported notes to git, commit them and push them to github after the export has finished.

Is there any way I can do that easily? as far as I know, Exporter has neither shortcuts not command line options.

Screenshot 2022-09-30 at 09.02.56

I reckon the easiest way will be to use a pause until image condition and wait for the Done! window to appear.

From there you can run git from the command line using the Execute a Shell Script action.