Merge Metadata from one file to text of another

I’ve just been bumped up in trust. Here is the link to the specific script: