win7guru/Balsamiq-Scripts — comment on commit fb91ef5b5de1d712c1533d6cd5b506dac33e57d0
File:  line 0
By win7guru:

Here is another script made by Peldi on http://community.balsamiq.com/balsamiq/topics/shell_scripts_to_export_multiple_mockups

#!/bin/bash

mockupsApp="/Volumes/Macintosh HD/Applications/Balsamiq Mockups.app/Contents/MacOS/Balsamiq Mockups";

cdir=`pwd`;
for f in `find . -name "*.bmml" | awk '{gsub(/ /,"%20");print}'`;
do
infile=`echo ${cdir}/${f} | awk '{gsub(/%20/, "\ ");print}'`;
outfile=`echo $infile | awk '{sub(/bmml/,"png");print}'`;
echo "Converting $infile to $outfile";
`"$mockupsApp" export "$infile" "$outfile"`;
done