How can I get a GameObject which is selected in Hierarchy pane using script?

Hello I want to do following.

  1. I select a GameObject in Hierarchy.
  2. I get it in script.
  3. I move it to specific position.

your answer, please!

http://unity3d.com/support/documentation/ScriptReference/Selection.html