AppleScript and Jekyll

Hi

I am working on a Jekyll web site redesign. For those unfamiliar Jekyll is a static site generator, it takes css, html and markdown files to create a site (usually a blog). Back end of jekyll is Ruby (I believe) and you generate a site locally through terminal commands - jekyll serve or bundle exec jekyll serve.

If you include the --watch keyword - bundle exec jekyll serve --watch, jekyll will observe your files and note when one changes and regenerate the site. In my case, the site is fairly big and it takes 45 seconds or so to regenerate the site. What I would like to do is determine when the site is finished being regenerated and use Growl to send a notification. This way I can do some small task or goof off on Twitter :smiley: in between saves and regeneration.

Problem is, I can’t ping Terminal to see if it is busy or not. When it is serving out Jekyll pages the tab is always busy. But there have to be some commands running under the hood that I could access to see if it is building a site or just in serve mode (hope that made sense).

Thanks in advance.