Actually you probably could write a postscript virus that deleted/renamed files:
Look at the ghostscript man page for the option '-dSAFER'
"Disables the 'deletefile' and 'renamefile' operators and the ability to open files in any mode other than read-only. This may be desirable for spoolers or other sensitive environments where a badly written or malicious PostScript program must be prevented from changing important files."
Which is why most tools that use ghostscript open PS files with the SAFER flag set.
Actually you probably could write a postscript virus that deleted/renamed files:
Look at the ghostscript man page for the option '-dSAFER'
"Disables the 'deletefile' and 'renamefile' operators and the ability to open files in any mode other than read-only. This may be desirable for spoolers or other sensitive environments where a badly written or malicious PostScript program must be prevented from changing important files."
Which is why most tools that use ghostscript open PS files with the SAFER flag set.