The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Apple / OS X

mac terminal

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

PARTNER SPOTLIGHT

Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
Top
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 7 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 7 years ago
Top
 



Topic Closed

This topic has been closed to new replies.