Change Text File Encodings in Mountain Lion via Applescript

Hi

How can I change the text file encodings (TextEdit) in Mountain Lion via Applescript?

Any tip or hint is welcome.

Thanks and regards
Lazy

I believe you can change the encoding in TextEdit for starters.

iconv is a commandline utility, that shows you the name of the different encodings it supports when given a list parameter.

iconv list man iconv # gives you the rest of the details.
You can call it via a do shell script, with quoted form of posix path