"All green apples but 1" or "All but 1 green apples"

I would like to use phrase "all but one" in the sentence like "Except for the one green apple, all the other green apples are bad."

Which expression is not ambiguous? "All but one green apples are bad." or "All green apples but one are bad."

Does "All but one green apples are bad." means "All apples but one green apple are bad." or "All green apples but one green apple are bad"?


Question

Which expression is not ambiguous? "All but one green apples are bad." or "All green apples but one are bad."

To begin, I would rephrase the first sentence as "All but one of the green apples are bad." Now, to answer your question, neither sentence is ambiguous: they both mean all the green apples are bad except one. That is, the sentences aren't qualifying over all the apples regardless of color; they're qualifying over just the green apples.