ところでした

was about to; almost

→ 所
phrase Uncommon #12,905
was about to; almost Used after a verb to describe being at a particular point in an action. Depending on the verb form, it can mean something was about to happen, nearly happened, or was in progress.
JA: 出かけるところでした。
EN: I was just about to leave.

駅に着いたとき、汽車はちょうど出発しようとするところでした。

When I arrived at the station, the train was just about to leave.

あなたはどこに行くところでしたか。

Where were you about to go?

彼はどこへ行くところでしたか。

Where was he on his way to?

学校へ行くところでした。

I was just about to go to school.

通報するところでした

I was about to report it.

— 人生スイッチ (2014)

あと一歩で彼が—解読するところでした

He was just about to decipher it.

— フィフス・エレメント (1997)

旦那様が一晩いらしただけで私をこんなにも憎んで危うく殺されるところでした…

Just because you spent one night with me, you came to hate me so much that I was nearly killed…

— 紅夢 (1991)

高齢の男性は危うく車にひかれるところでした。

The elderly man was nearly hit by a car.

最後に見たのは、スパイの後を、バスに乗り込むところでした

The last I saw of him, he was getting on a bus after the spy.

— バジュランギおじさんと、小さな迷子 (2015)

男の子は溺れるところでした。

The boy almost drowned.

あなたのいらっしゃるのがあまり遅いので、今電話をするところでした。

You were taking so long to arrive that I was just about to call you.

もう少しで手に入るところでした

I was just about to get it.

— RRR (2022)

貴方の言葉はもう少しで彼の忠誠心を説得するところでした

Your words almost convinced him to be loyal.

— レッドクリフ Part I (2008)