I want to replace a word in a file then save as a new file.
according to your replaceInAllScripts.script, so I write as this:
set the folder to “/working”
set filename to “aaa.xml”
put file filename into txt
replace “a” with “b” in txt
create file “b.xml”
put txt into file “b.xml”
I try this, but txt is alway empty; the value of file aaa.xml can not be set to txt, so my b.xml is alway empty.
I dont know why? thanks for your help!