After lots of trial and error, and a little inspiration from Koji, I have written a new script that will run when you select "update snapshot" in the yellow ! button on any MEDM screen.
Right now, it's only live for the OAF_OVERVIEW screen. View snapshot and view prev snapshot also work.
Next on the list is to make a script that will create the yellow buttons for each screen, so I don't have to type millions of things in by hand.
The script lives in: /cvs/cds/rtcds/caltech/c1/scripts/MEDMsnapshots, and it's called....wait for it....... "updatesnap".
Currently the update snapshot script looks at the 3 letters after "C1" to determine what folder to put the snapshots in. (It can also handle the case when there is no C1, ex. OAF_OVERVIEW.adl still goes to the c1oaf folder). If the 3 letters after C1 are SYS, then it puts the snapshot into /opt/rtcds/caltech/c1/medm/c1sys/snap/MEDM_SCREEN_NAME.adl
Mostly this is totally okay, but a few subsystems seem to have incongruous names. For example, there are screens called "C1ALS...." in the c1gcv folder. Is it okay if these snapshots go into a /c1als/snap folder, or do I need to figure out how to put them in the exact same folder they currently exist in? Or, perhaps, why aren't they just in a c1als folder to begin with? It seems like we just weren't careful when organizing these screens.
Another problem one is the C1_FE_STATUS.adl screen. Can I create a c1gds folder, and rename that screen to C1GDS_FE_STATUS.adl? Objections?