SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Apple / OS X

mac terminal

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

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

Posted 5 years ago
Top
 
jd2066
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 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/

Posted 5 years ago
Top
 



Topic Closed

This topic has been closed to new replies.