1. A method for generating script in a computer system, comprising: providing a user interface for enabling a user to perform user actions using said user interface to perform a user task; monitoring said user actions by said computer system; determining environment information in accordance with said user actions; and generating script in accordance with said user actions and said determined environment information to provide generated script.