SAN FRANCISCO — Apple Inc. had an incredible 2007. It launched the iPhone, saw a huge uptick in Macintosh computers sales and enjoyed the near doubling of its stock price.