InDesign CC 2017: get path to file on event afterPlace?

I would like to get the file path of an image on the event “afterPlace” in order to replace it with another image if certain criteria are met. How do I do that in applescript? I only fumble…