First you need to pick the closest object using the pick nearest/furthest condition inside ob2
condition in ob2:
Pick nearest: X: ob1.X Y: ob1.Y
Then rotate and move ob1 using these actions. I have showed two different ways of doing this on both actions.
action: Rotate ob1 towards position (X: ob2.X Y: ob2.Y) or Set ob1 angle (angle(ob1.x,ob1.y,ob2.x,ob2.y))
action: Move at angle: (self.angle) or Move at angle: (angle(ob1.x,ob1.y,ob2.x,ob2.y))