Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
General Discussions
Switcher Hangout (Windows to Mac)
How to execute *.bat file in Mac
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cwa107" data-source="post: 1531645" data-attributes="member: 24098"><p>Let's assume you're Chinese and don't speak a lick of English.</p><p></p><p>Let's further assume that you need to do a task that consists of several steps, each with very specific instructions.</p><p></p><p>Now, someone hands you directions for that task and they are written in.... you guessed it... English. That's not going to work, will it?</p><p></p><p>That's what you're looking at here. .bat files are MS-DOS batch files. OS X, being based on UNIX, has no idea what to do with a .bat file. And just as you can't change the name of the English instructions mentioned above and have it understandable in Chinese, you can't simply change the extension on the .bat file and have it recognized by OS X.</p><p></p><p>That said, there are many different ways to script automated solutions with OS X. The easiest of which is Automator, which is built right into OS X (look in your Applications folder). There is also AppleScript. And if for whatever reason, you want to delve even deeper into scripting, there you can do shell scripting. An excellent guide is available <a href="https://developer.apple.com/librarY/mac/documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html" target="_blank">here</a>.</p><p></p><p>What you need to do next is to decipher that .bat file and find out what it actually does. Break it out into vey basic steps. Then, translate those actions into your scripting solution of choice, depending on which is most appropriate. </p><p></p><p>Hope that makes sense.</p></blockquote><p></p>
[QUOTE="cwa107, post: 1531645, member: 24098"] Let's assume you're Chinese and don't speak a lick of English. Let's further assume that you need to do a task that consists of several steps, each with very specific instructions. Now, someone hands you directions for that task and they are written in.... you guessed it... English. That's not going to work, will it? That's what you're looking at here. .bat files are MS-DOS batch files. OS X, being based on UNIX, has no idea what to do with a .bat file. And just as you can't change the name of the English instructions mentioned above and have it understandable in Chinese, you can't simply change the extension on the .bat file and have it recognized by OS X. That said, there are many different ways to script automated solutions with OS X. The easiest of which is Automator, which is built right into OS X (look in your Applications folder). There is also AppleScript. And if for whatever reason, you want to delve even deeper into scripting, there you can do shell scripting. An excellent guide is available [URL="https://developer.apple.com/librarY/mac/documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html"]here[/URL]. What you need to do next is to decipher that .bat file and find out what it actually does. Break it out into vey basic steps. Then, translate those actions into your scripting solution of choice, depending on which is most appropriate. Hope that makes sense. [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
General Discussions
Switcher Hangout (Windows to Mac)
How to execute *.bat file in Mac
Top