It's easy to slam lawyers, but the facts often tell a different story. Lawyers don't make a penny from a class action suit unless they win in court or unless the company settles. In the former case, the lawyers must *prove* that the product was defective and that the defect caused the problem consumers are complaining about. In the case of a settlement, the plaintiffs' lawyers must convince the company's lawyers that they will be able to prove their case in court. Otherwise, a company with the legal resources of Apple would never think of settling. To prove a complex case like either of these, the law firm must commission scientific studies, hire experts for evaluation, etc., all at the law firm's expense. In cases such as this, it is not uncommon for a firm to spend more than a million dollars preparing the case for trial. This is all money that the firm will *lose* if their case doesn't prevail.
That money is an important (and very effective) safeguard against frivolous litigation. Moreover, if the firm wins, much of its fee will go to cover the costs associated with getting the case ready for trial. What seems like a high attorney fee therefore usually isn't. (The average lawyer makes only about $40,000 per year.) Lawyers do hope to make money, of course, but the threat of losing is every bit as much a check on plaintiffs as it is on companies that might otherwise release defective products to save money themselves.
One more point: I don't know anything about the iBook issue, but in the case of the iPods, a firm is merely posting a request for feedback from consumers. A firm that does class action work definitely keeps its ear to the ground for potentially winnable suits (that is, cases where product defects *can* be proven). Thus, when something like the alleged iPod battery problems makes the news, it will get their attention. But then begins a long process of deciding whether the company did in fact do something wrong, and whether the case can be proven in court. If not, it will be abandoned (the law firm absorbing the costs of the work it did to determine this). That's where the iPod "case" is right now. Nothing has been filed, but its viability is being assessed.
This process is very healthy for our economy. Because of some successful suits and the threat that a company could be sued for acting wrongfully, consumers generally can expect products they buy to work as advertised, and that's a good thing. Where that's the case, the company doesn't have anything to worry about (as no firm will waste money pursuing a case with no support).
As someone with ties to the legal profession, I can tell you that the overwhelming majority of lawyers are motivated not by greed, but by a desire to serve a great and noble system. It is, after all, one of the only professions where ethical issues are taught in schools and constantly considered by those practicing the profession. And without their work, we would have a very different quality of life.
elo