Don’t know if this has ever come up before. Per the readied action your reaction takes place after the trigger. If you were to say “I ready to cast Catapult on a projectile coming within range” would you be able to interrupt a ranged attack this way?
Given that trigger, you could do it.
— Jeremy Crawford (@JeremyECrawford) August 31, 2018