Here are few steps to do the task:
Firstly, you have to record the
macro you want to apply, using
the reocding button in the GUI of
PSSE.
Secondly, fill in these below code, which will do the task
for you.
import psspy
File_List = [your list of sav formatted file names you want to excecute]
for file in File_List:
psspy.case(file) #or load a raw formated file by psspy.read()
#insert your macro here
#save sav file if you want by psspy.sav(); save raw file by psspy.rawd_2()
Thirdly, run it.
Above are just some simple stuffs, for more infomation you should check out the documents of PSSE.