NEW YORK - Apple and other technology companies led the stock market up for a second day in a row Thursday.
The gains came one day after Apple took its worst fall in four years. In separate interviews, CEO Tim Cook said Apple would produce one of its Mac computers in the United States next year and spend $100 million in 2013 to shift production of the line from China.
The tech giant's stock gained $8.45 to $547.24.
The Dow Jones industrial average rose 39.55 points to close at 13,074.04. Intel led the Dow, rising 31 cents to $20.16.
Investors' biggest concern remains the automatic tax increases and federal spending cuts scheduled to start Jan. 1. "Everybody is paying close attention to the soap opera in Washington," said John Canally, investment strategist and economist at LPL Financial.
President Obama said Wednesday that the White House and Republicans could reach an agreement "in about a week" if the Republicans dropped their opposition to raising taxes on making more than $250,000 a year.
Most investors believe the president and Congressional Republicans will strike a budget deal to avoid the fiscal cliff before the year is out. Until they do so, however, the stock market will likely be hostage to news out of Washington.
In other trading, the Standard & Poor's 500 index rose 4.66 points to 1,413.94, while the Nasdaq composite climbed 15.57 points to 2,989.27.
The Labor Department said unemployment benefits applications dropped 25,000 last week to 370,000, a level consistent with modest hiring. The decline was also a sign that the spike in applications caused by Hurricane Sandy has faded.
The government will release its monthly jobs report Friday. Private economists forecast that hiring in November sank from the previous month. They expect the unemployment rate to remain unchanged at 7.9 percent.
More companies announced plans to reward investors with dividends this month in case taxes rise next year.
Sirius XM Radio said it would issue a one-time dividend of 5 cents per share at the end of the month. Safeway shifted a payment scheduled for January to Dec. 31. And Landstar Systems will pay shareholders 50 cents a share this month instead of paying dividends for the next two years.
Dividends, now taxed at 15 percent, will be treated like ordinary income next year unless Congress and the White House extend current tax breaks as part of a budget deal.
Among other stocks making moves, Akamai Technologies jumped 10 percent, the best gain in the S&P 500 index. Akamai, which helps websites work faster, forged a partnership with AT&T to deliver online content. Its stock gained $3.56 to $39.06.
H&R Block surged 5 percent after posting revenue and earnings that beat analysts' estimates. The country's largest tax-preparation company reported a smaller loss, helped by cost-cutting efforts. It typically turns in a loss in the August-to-October period because it takes in most of its revenue during the U.S. tax season. H&R Block gained 89 cents to $18.26.