this will get you started you should be able to finish the rest
str s.getfile("$desktop$\abc.psl\abc.psl");; load the file into a string so you can work with it
s.findreplace("select partition 0" "select partition 1")
;the first set of quotes in findreplace are what to find the second are what to replace with
;s.findreplace("" "");;;uncomment and make changes to findreplace
;s.findreplace("" "");;;uncomment and make changes to findreplace
out s
;when done editing
;s.setfile("$desktop$\abc.psl\abc.psl");; uncomment when you want to save