看美剧学口语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?
你当时没想到他在撒谎吗?