としたが

tried to, but

→ と
phrase Common #7,157
tried to, but Usually appears as ようとしたが, meaning someone tried or attempted to do something, but an opposing result followed. The related pattern ようとするが means "tries to, but."
JA: 早く寝ようとしたが、なかなか眠れなかった。
EN: I tried to go to bed early, but I couldn't fall asleep.

トム出発しようとしたがメアリーを止めた

Tom tried to leave, but Mary stopped him.

戸を開けようとしたが鍵がかかってだめだった

I tried to open the door, but it was locked.

彼女は髪を切ってもらいに行こうとしたがお母さんが許してくれなかった

She tried to go get a haircut, but her mother wouldn’t let her.

ミサト冷静でいようとしたがついかんしゃくを起こしていた

Misato tried to stay calm, but she eventually lost her temper.

ミーチャ待ち続けてそれからウクライナ戻ろうとしたが

Mitya kept waiting... and then tried to return to Ukraine, but...

— Брат 2 (2000)

私は彼に本当に起こった事を話そうとしたが彼は私の言葉をさえぎった

I tried to tell him what had really happened, but he interrupted me.

フレッドドアのところへ行こうとしたがテーブル邪魔になった

Fred tried to get to the door, but the table was in the way.

本を読もうとしたが無理だった

I tried to read the book, but I couldn't.

— プラットフォーム (2019)

図書館見つけようとしたが道に迷ってしまった

I tried to find the library, but I got lost.