A 57-year-old man allegedly tried to sexually groom a child into meeting him, a court heard today.