Screen Saver Password Login

Before Mountain Lion, I was able to use GUI scripting to log back into my screen saver password protected Mac. Anyone know how to make this work again? Thanks



tell application "System Events"
	keystroke "password"
	keystroke return
end tell