How about not eating those certain foods.
I use to be the exact same way wanting to drink Pepsi first thing in the morning, at every meal, inbetween meals, in the bathtub and in the car. I was so addicted to it that I always had a Pepsi in my hand or where I was.
Pepsi, along with any soft drink is nothing but calories, rots your teeth and isn't good for you. When I began to realize that every time I drank a Pepsi, I was added calories and more weight, I decided enough. What I drank in calories, I can now eat in veggies or food.
I drink water or orange juice. A cup of tea is also nice at a meal. I don't drink coffee and haven't since I was about 23. I don't like the taste of it nor the smell of it. Water is far better for you and helps you lose weight!!