としていた

was about to

→ と
phrase Uncommon #12,912
was about to After a verb in its volitional form, としていた describes something that was on the verge of happening.
JA: 彼は出かけようとしていた。
EN: He was about to go out.

今船で捜しに行こうとしていたの

I was just about to go look for them by boat.

— 紅の豚 (1992)

彼女がちょうど風呂へ入ろうとしていたときにベルが鳴った。

The bell rang just as she was about to take a bath.

彼は怒りに燃えてかっかとしていた。

He was burning with anger.

両親が私を自分たちの考え方に変えようとしていた。

My parents were trying to change me to think the way they did.

私たちは部屋に入ろうとしていた。

We were about to enter the room.

私がちょうど寝ようとしていたときに電話がなった。

The phone rang just as I was about to go to bed.

隠そうとしていたが、彼女がひどく動揺しているのは明らかだった。

She tried to hide it, but it was obvious she was deeply upset.

日本人は以前は主に米を主食としていた。

In the past, Japanese people mainly ate rice as their staple food.

その時彼はちょうど帰ろうとしていた。

He was just about to leave at that time.

飛行機はまさに離陸せんとしていた。

The airplane was just about to take off.

私の父は早寝早起きを主義としていた。

My father believed in going to bed early and getting up early.

君たち二人のと同じで、書こうとしていた本の資料を詰め込んである。

Just like the two of yours, it’s packed with reference materials for the book I was planning to write.

部屋はシーンとしていた。

The room was silent.