This is awesome, with one small change on the Mac. In the last line of the script, where it actually runs Gimp, you need to replace “gimp” with “/Applications/Gimp.app/Contents/Resources/bin/gimp”

Enjoy!