Mason Greenwood appears in court on attempted rape charge