Question: how to tell the difference between a direct and indirect object?
Answer: An object is the part of a sentence that gives meaning to the subject's action of the verb. For example: Alice caught the baseball. ... 
A direct object answers the question of who(m) or what. ... 
An indirect object answers the question of to whom, for whom, or for what.