Just Fred wrote:
Most Macs ship with a program called "Migration Assistant" located in the Utilities folder. Connect the two Macs with a cable (the type will depend on the models of Macs) and run the Migration Assistant. You can move pretty much everything (programs, data, etc.) from one machine to another this way.