mac terminal(2 posts)
OS X is based on UNIX and like all UNIX-based/UNIX-Like OSes there are various scripting languages you can use. Usually you don't need an extension like .bat on the file, just a Shebang line and the executible bit set on the file.
You can check out a guide by Apple on those scripting languages at http://developer.apple.com/int.....pting.html
That guide tells you how to use UNIX-based/UNIX-Like OS scripting and has some OS X specific notes.
Also there is AppleScript, an Apple specific language that can do things like tell iTunes and other programs to do certain things.
For more information on that see http://developer.apple.com/applescript/