The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Apple / OS X

mac terminal

(2 posts)
  • Started 8 years ago by hsn
  • Latest reply from jd2066
  • Topic Viewed 1726 times

Posts: 13

hello everyone.
i know in windows we use .bat files to run the dos commands.
what kind of file in mac to run the commands by?

kind regards

Posted 8 years ago
Posts: 3814

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
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

Posted 8 years ago

Topic Closed

This topic has been closed to new replies.