Short story about a machine that provides people with what they want

2018-06-15 16:03:32

There is an old sci fi short story (I think) about a civilization that creates a huge machine to provide all that people want, on demand. They think "apple", and one materializes in their hand. Much of the story takes place before the machine is switched on, but when it is switched on, it decides to leave mankind behind and goes off to the stars. It may have been Philip K Dick - does anyone know the story, and the author?

Edit: I read this story myself over 20 years ago, and even then it was probably about 20 years old. So we're talking 1950s, 1960s, 1970s era, and probably not later. The story was mostly around the philosophical aspects of having a machine do everything for you, instead of making the effort yourself. I think the story took place mostly over a single evening, the few hours before the midnight switch-on.