Apparatus in which the depositing device or the receptacle is reciprocated