I used to run the following code in Lion to open terminal, update a project, then open a new tab, and run again to update a second, third, and fourth. Since the Mountain Lion upgrade, this no longer works. Half the time it seems to open Finder at my home directory, and the other half it seems to open the OSX font / text dialog. I’ve confirmed that Cmd+T should still open a new tab. Any idea why it broke?
tell application "Terminal" to activate
tell application "Terminal"
do script "cd Projects/blahblah/trunk" in front window
do script "svn up" in front window
end tell
tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
Turns out I needed to tell Terminal to activate between each call for some reason. Lion never made me do that.