#!/bin/bash

## Resizer
# AppleScript Studio Resizing blows!

if /bin/test -f /tmp/visualhub_sizer
	then
	exit 0
	fi
/usr/bin/touch /tmp/visualhub_sizer
/bin/sleep 2
if [ `/bin/ps -auxww | /usr/bin/grep VisualHub | /usr/bin/grep -v resizer | /usr/bin/grep -cv grep` -lt 1 ]
	then
	exit 0
	fi
/usr/bin/osascript -l AppleScript -e 'tell application "VisualHub" to update window "VisualHub"'
/bin/rm /tmp/visualhub_sizer
exit 0

