News

You could do this with Applescript but honestly you are better off using a language more optimized for text processing like Python or Perl. Applescript is great for controlling applications.