Elephants occasionally roam the streets as part of Indian street festivals.
They are very curious animals that love to pick things up with their trunk. They get so nosy, they simply can't help themselves, like babies going through a phase where they want to put everything in their mouth.
The solution? Give the elephant a large bamboo stick to hold onto.
You can use the same technique for your mind.
When you're meditating, focus on the breath or a mantra.
When you're working on a project, you can give yourself a background task that is somewhat related to your main task but not too much. Typing faster or without errors. Working in well-defined blocks of time. Counting the number of times you get distracted.
A bamboo stick for your mind can make all the difference between grace and chaos.