ちょうど出かけようとしていた

was just about to go out

→ 丁度
phrase Rare #28,932
was just about to go out Used when someone was on the point of going out, often when another event interrupted or coincided with it. ちょうど means “just” or “exactly,” and ようとしていた expresses an action that was about to happen.
JA: ちょうど出かけようとしていたところに、友達が訪ねてきた。
EN: My friend came to visit just as I was about to go out.

ちょうど出かけようとしていた時に彼女が戻って来た

Just as I was about to leave, she came back.

私たちがちょうど出かけようとしていた雨が降り出した

Just as we were about to leave, it started to rain.

私はちょうど出かけようとしていたすると雨が降りだした

I was just about to head out when it started raining.

私がちょうど出かけようとしていたとき雨が降りだした

Just as I was about to leave, it started to rain.

ちょうど出かけようとしていたところ雨が降り出した

Just as I was about to leave, it started to rain.