Does anyone have a script to open and save drawings automatically when they are added to the vault?

Alot of properties for the Solidworks drawing card as well as fields in the drawing itself come from the folder data card and part properties. However for these properties to update and write to the drawing card, it requires the drawing to be opened and saved after it is added to the vault. Does anyone have a script or a way to do this automatically? I also have an automatic state change that the drawing goes through during check in. 

Current SW version is 2020 SP4

PDM Professional 

SolidworksApi/macros