There’s nothing wrong with indulging every once in a while, but if you want to steer yourself away from the less healthy snacks you desire, new research offers a trick that may help.