Edit and write .bat files on Mac

I need a solution, please.

Posted on Mar 31, 2017 12:15 PM

Reply
3 replies

Apr 1, 2017 4:14 AM in response to bendawko

As others have stated, Macs do not use .bat files. If you

are trying to create some process to do a series of system tasks

there are multiple ways to do it.


Applescript - https://developer.apple.com/library/content/documentation/AppleScript/Conceptual /AppleScriptX/AppleScriptX.html

Automator -

In the Mac Help menu, just type in automator.


In addition, you can create command line scripts as well using

the built in UNIX Bash shell. The article is for Linux but is still

valid for any *NIX environment:

https://linuxconfig.org/bash-scripting-tutorial


In addition, you can create such scripts in Swift language. I believe

you need to install Xcode to get the Swift interpreter shell for Terminal.

http://www.strathweb.com/2014/06/using-swift-general-purpose-scripting-language/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Edit and write .bat files on Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.