Add a trigger in Iterm2>Prefernces>Advanced>Triggers
(Those who have paid for Growl can simply use the growl action)
regex: #done#
action: run a command
arguments: /usr/local/bin/notify "Done" (ensure that you've copied the script to that location and made it executable)