Adding a fragrant oil to surround for deer and squirrels?

Also I don’t know about rosemary oil but 10 oils where tested vs a member of the cicada family and only lavender was effective.

Lets Talk cicadas damage - General Fruit Growing - Growing Fruit