The cat follows the mouse so all you have to do is move the mouse towards the apples.
Thanks to Max Wainewright's 20 Games to Create With Scratch.