retrieve value from one file, apply to another?

i’m interested in making a macro or script that would retrieve the normalization value from one file and apply it to another.

from what i can see so far, the effect i need might be ‘amplify’ rather than normalization. in any event, my desired workflow is this:

  1. open master file and get the value that would effectively normalize this master to 0db.
  2. close the master file.
  3. apply that value to a batch of shorter pickup files.

is this possible in audacity? i’m ok with macros but have never scripted in audacity and would love to avoid that particular rabbit hole, if possible.

thanks for any guidance,