#!/bin/sh
/usr/bin/osascript <<- ENDSCRIPT
tell application "Terminal"
	set c to count windows
	set the names to ""
	repeat with i from 1 to c
		set the names to (the names & "window " & i & "	" & name of window i & "
")
	end repeat
end tell
ENDSCRIPT
