DALLAS (AP) — American Airlines is going back to court to throw out its contract with union pilots after making changes to satisfy the bankruptcy judge.

If it wins in court, American could cut annual spending on pilots by more than $300 million and do more revenue-sharing deals with other airlines.

American parent AMR Corp. filed a motion in U.S. bankruptcy court in New York on Friday, two days after a judge denied American's first attempt to cancel the pilots' contract. The judge rejected the company's demand for unlimited power to furlough pilots and make so-called code-sharing deals.

AMR now proposes to limit possible furloughs to about 1,750 or less than one-fourth of its pilots, a ceiling set in the pilots' current contract. It seeks to greatly expand code-sharing but not on all routes. Pilots view code-sharing as potential outsourcing of their jobs.

A hearing on AMR's new proposal is scheduled for Sept. 4.

Meanwhile flight attendants are scheduled to complete voting Sunday on their last contract offer from American. If they reject the offer, American will ask the court to throw out that contract too.

Under federal bankruptcy law, companies can nullify union contracts if they convince a judge that the move is necessary for a successful turnaround. American claims that its labor costs are higher than competitors, and it is seeking to impose cost-cutting measures that pilots rejected in a vote last week.

AMR spokesman Bruce Hicks said the company believed that Friday's motion addressed the judge's concerns and will allow it to continue moving through the bankruptcy-restructuring process.

Union spokesman Tom Hoban said that leaders of the Allied Pilots Association would still like to negotiate a deal that could be ratified by American's 8,000 active pilots.

"Our hope is that we get back to the bargaining table," he said.

The committee representing AMR's unsecured creditors threw its weight behind the company's strategy of nullifying contracts for unions that fail to ratify new contracts.

The committee said Thursday night that it was satisfied AMR's revenue growth and performance since it filed for bankruptcy protection in November, and it opposed any improvement in financial terms for workers beyond those that American has already offered to its unions.

US Airways is pursuing a merger with AMR and reached contingent contracts with American's pilots, flight attendants and ground workers. AMR officials have had a chilly response to US Airways' overtures.