看美劇學口語I was about to grab dinner form that motel ...

Rex: Well, I was just about to grab dinner from the motel vending machines when it occurred to me.

be about to 正準備做某事

vending machines:自動售貨機,自動販賣機

occur vi. 發生;出現;存在

sth. occur 發生了某事和happen近義詞,表偶然事件的發生

That plane crash occurred only minutes after take-off.
空難在起飛幾分鐘後就發生了。sth. occur to sb:sb突然想起sthA good idea occurred to me .我突然想到一個好主意。it occurred to sb. to do ,某人突然想到做某事It occurred to me to visit my teacher.
我想到要去拜訪我的老師。it occured to sb. that Didn't it occur to you that he was lying?
你當時沒想到他在撒謊嗎?