Change default behavior for copy/pasting images?

OK, I have not found anything helpful yet.
What I have thought about now is to implement a job (using the scheduler) which replaces all the default image tags with lightroom macro ones.
Does anyone know a proper tutorial for writing such jobs (iterating through articles and replacing source text)?