Supreme Court Justice Clint Bolick urged Gov. Doug Ducey to name Maricopa County Attorney Bill Montgomery to the U.S. Senate just days after John McCain died.

In a text message sent to Ducey obtained by Phoenix New Times, the judge called Montgomery “one of the few who could fill Sen. McCain’s shoes,” and someone “who is supported by all parts of the GOP, yet unfailingly conservative.”

Bolick told Capitol Media Services Tuesday there was nothing improper about his endorsement of Montgomery.

He acknowledged that the rules that govern the conduct of judges prohibit them from publicly endorsing candidates for public office. But the text, he said, was meant to be a private message to Ducey.

But attorney Tom Ryan, a Chandler attorney who has been involved in political issues and legal disputes over conflicts of interest by public officials, said that ignores the fact that Bolick sent the text from his court-issued cell phone. And that made anything he sent from there a public record, whether he intended that or not.

Even if there was no technical violation of the rules that govern judicial conduct, Ryan said Bolick should not have weighed in. He said the glowing words about Montgomery create an appearance of favoritism for the county prosecutor that would cause concern by any defense attorney who is arguing a case before Bolick.

Bolick, however, brushed aside any such concern, citing his record on the bench since being appointed by Ducey in 2016.

“I think Bill would be the first to note that his record before me is far from perfect in terms of my voting for him,” Bolick said.

Anyway, the judge said, this wasn’t a political “campaign.” Instead it involved the governor fulfilling his legal duty to fill vacancies created in the Senate.

Ryan dismissed that argument, calling the appointment of a senator — who in this case had to be a Republican like McCain — an “overtly political act.”

The text, sent the afternoon of Aug. 27, starts with an apology “for joining what I am sure is a tsunami of unsolicited advice.”

“Wicked smart principled, West Point, very modest beginnings, young enough to be there for a long time,” Bolick wrote. “Can work across the aisle.”

Bolick said he was acting on his own and not on any request by Montgomery, who he said is “very much in the mold of Jon Kyl.”

“Clint — thank you,” Ducey texted back.

“Always value your advice and recommendations,” the governor continued. “I share your admiration of Bill. He is one of our finest.”

As it turned out, Ducey named Kyl to serve until the 2020 election.

Kyl, however, may not remain that long.

In being appointed, however, Kyl, who had served in the Senate for 18 years before retiring at the end of 2012, vowed only to serve through January. That enabled him to vote to confirm Brett Kavanaugh to the U.S. Supreme Court after having been tapped in his private practice to help guide him through the confirmation process.

Kyl’s press office in Washington did not respond to a query about the senator’s intentions. But if Kyl does quit, Ducey will have to find someone to take his place.

Montgomery on Tuesday sought to distance himself from the whole issue.

“I was one of many who supported Sen. Kyl’s appointment and did not ask, seek, or have any conversations about being appointed,” he told Capitol Media Services. And he said too much was being made of what Bolick had done, calling it “an unsolicited private email making a recommendation that didn’t happen.”

And what if the seat were to again become vacant?

“My best answer is that I’m the county attorney until I’m not,” Montgomery responded.

Bolick said he did not understand the fuss over the text.

“I don’t think this is really any different than me expressing a view about an appointment to the governor personally,” he said. “Judges remain citizens.”

Anyway, Bolick pointed out, the rules do not create an impenetrable wall between judges and politics.

“Judges are allowed to make political contributions and often do,” he noted, contributions that candidates have to report in publicly available campaign filings.

“Judges are allowed to privately express their views on candidates for office,” Bolick continued. “I don’t think the fact that a private communication is made public changes that analysis.”

And Bolick said what he did is “one big step removed from that” because Montgomery was not a “candidate” running for office.

There was no immediate response from Ducey about whether he thinks it’s proper for a sitting state Supreme Court justice to be making recommendations for appointments to political office.

Bolick said no one has ever suggested that sitting justices cannot express their opinions.

He pointed to an interview U.S. Supreme Court Justice Ruth Bader Ginsburg did in 2016 with the New York Times — before the presidential elections — where she joked that if Donald Trump became president it could be time to move to New Zealand.

“I can’t imagine what the country would be with Donald Trump as president,” she said.

And Sandra Day O’Connor, watching election returns in 2000 at a party with friends, said, ”It’s over” when the networks were saying Democrat Al Gore had won the election.

Her husband, John, offered the explanation that his wife wanted to retire and was not interested in having her seat filled by a Democratic president. But that did not stop O’Connor from becoming the fifth vote on the nine-member court to halt the recount of Florida ballots, meaning Republican George W. Bush would be elected.

Years later, O’Connor appeared to have some second thoughts, suggesting that perhaps the court should not have taken the case in the middle of the election counting.