IF society made a concerted effort to automate each undesirable job (i.e., in agriculture, make the huge farming machinesself driven; in manufacturing only construct automated factories instead of manual labor factories; in services, generalize the automated kiosks and wait staffs)
THEN most of what is left are the desirable jobs, those that people actually want to do, independent of pay (IF they have all their needs, and most wants made available) (i.e., Doctors, Engineers, Researchers)
Think of that example: In your house, you have to spend time cleaning the bathroom. Why don’t you start at home, “automate this undesirable job” and show us all how it’s done?
Let suppose just for argument sake that you know exactly how to automate that job - you have already the plan (the technology) for building the ultimate “self washable” bathroom given to you by a time-travel explorer.
All you need is follow the plan: gather natural resources, refine them, transform them, create tools, what will help you create other tools, that will help you create yet other tools (and so on), until you are able to create the first piece of the first micro robot of the “self washable” bathroom.
Then, you repeat the process countless and countless of times, after imaginable hours spent (not counting errors, mistakes, accidents, etc…) - while feeding yourself, providing shelter for yourself, and after how many years? 40 years? You finally have your self washable bathroom.
Oh, and that self washable bathroom can breakdown, which can take you years to repair.
All of that for what? Not having to wash the bathroom for a couple of hours per week? See how your scarce resource - labor - could instead have been used to satisfy much more urgent needs.
Point being is that automating things take longer than doing them without automation. It takes a long time before a automating a given task “pays off” in terms of time saved vs time required to automate it.
If you believe that by having many people dedicated to this task it would be realisable in a short amount of time, then you have to realise that for all those people, there is a corresponding magnitude of different “undesirable jobs” that they’d like to automate, basically having different needs to be satisfied.
Thinking that we can eliminate scarcity by eliminating money, or that without capitalism wealth for all, is simply the belief of an ignorant person listening to tired old socialist slogans.
P.S. if you think that being a doctor is a desirable job, you should go ask one if he’d do it for free. Or if engineers would work on the same things if they weren’t paid.