Hello. I work for a small company and we frequently get client AI files that we need to edit. Because of the way thay're formatted the layers always come in with the same name/structure, but they always have a layer that we need to replace. We have to go into a shared drive and manually place our desired item (a .pdf file if it's of importance) in the subset layer to continue with the file. So for example, there will be a layer in the default file named Layer 1, and in that layer is group 1 > group > Clipping Mask and Image.
I know ideally we should just fix the scripting that formats the layers, but for now that's not possible. So, what I'd like to be able to do (assuming it's even possible) is have a script that we can run that will automatically replace the 'Image' file in those subset layers I mentioned with a file from a location on a local machine (i.e. replace Layer 1>group 1>group>image.jpg with C:/example/example.pdf).
I searched online and couldn't find anything, so I figured I'd turn to the community for help. Any input, suggestions or creative workarounds would be greatly appreciated! And as always, thanks ahead of time, everyone on these forums is usually very nice and awesome, so it's always nice to come here for help.