Applescript or Shell rename a file? The following is the code I have, however, it doesn't let me choose the extension I want to save it as. How can I save the file as a ".plist" ?

do shell script "echo '{ Filter = { Bundles = ( \"'" &amp; proj &amp; "'\" ); }; }' &gt;&gt; ~/Desktop/gametocheat/" &amp; proj &amp; " "
You need to use a tool that can write a plist such as defaults.

defaults write ~/Desktop/gametocheat/my.cheat.preference '{ "Filter" = { "Bundles" = (foo); }; }';