1. Attention to. — Usually used with "have" or "with".
Have an eye to spelling in these test papers.
2. Plan for, purpose of. — Usually used with "have" or "with".
Save your money now with an eye to the future.
John is going to college with an eye to becoming a lawyer.