EXE (executable file) is the common denotation of a computer program on DOS, OpenVMS, Windows, etc. Resources, bitmap graphics, icons, and other components for running a program are contained in EXE files. When compressed, it is often possible to use the compressed version in the same way as the uncompressed version using executable compressors. For app development, the nearest equivalent to Xcode would be Visual Studio. There is also a version of Visual Studio for Mac, if you ever feel the need to go back. For cross-platform source code editing (and a huge number of plug-ins) Visual Studio Code is the most popular choice. I loaded OS X Panther on my Mac G4 and found that many files previously saved as txt files were inadventently converted to Unix executable files. When I try to read these in Word, the Word filters cannot recognize or translate the file properly.
Very often, in OS X, when one has a terminal command that needs to be used often, it's convenient to turn that UNIX command into a double-clickable desktop file with a recognizable icon. How can that possibly be done? I'll show you how.
Jun 23, 2017 Similar Software for Mac. Install tofrodos on Mac OSX; Install docbook2x on Mac OSX; Install xml2 on Mac OSX; Install enscript on Mac OSX; Install highlight on Mac OSX; Install itex2mml on Mac OSX; Install gnu-barcode on Mac OSX; Install txt2man on Mac OSX; Install talk-filters on Mac OSX; Install mplayer on Mac OSX.
OS X is based on BSD UNIX
Here's the basic outline of this tip.
- Create a UNIX script with a text editor that contains one or more terminal commands.
- Make it executable.
- Double click it in the Finder.
It's really quite simple, but there are a few things to be aware of. I'll walk you through it and add some notes as needed.
I. Create a script. UNIX scripts are similar to AppleScript. There are commands and a syntax. From time to time you'll see articles that show how to change an OS X preference from the command line. For example, you may have seen this terminal command that strips the drop shadow from your screenshots:
Note #1. The Terminal app location is /Applications/Utilities/Terminal.app
Scripts are a sequence of commands, managed by the scripting language, to a achieve a task. The easiest way to write a script is to use a text editor, like OS X's built-in TextEdit, found in the Applications folder.
Note #2. Make sure the Preferences for TextEdit are set correctly. Preferences > New Document > Plain text. Once set, relaunch TextEdit.
Here's a simple script that uses the 'uptime' command to display how long it's been since your Mac was rebooted.
Note #3. The first line tells OS X to use the Bash scripting language. There are several to chose from. We won't dig into that here.
Copy and paste this script into a new TextEdit file. Call it 'ByYourCommand.txt' Save this file on your desktop.
II. Make the Script Executable.
1. In the Finder, delete the file extension '.txt' The Finder will ask for confirmation.
2. Open the Terminal app and navigate to the file. Substitute your own login name instead of mine. Like this:
3. Still in the terminal, execute this UNIX command:
Note #4. This UNIX command makes the file executable, that is, double-clickable.
Note #5. If you have antivirus software installed, it may object, depending on its preferences, to an executable script being inserted into a file that was created by an OS X text editor. Just ignore the warning.
At this point, you'll notice that the file's icon has changed to this:
III. Double click the file 'ByYourCommand' on the desktop. The Terminal app will launch, the script will be executed, and you'll see the results, like this:
Uptime: one day, 21 h since my last reboot.
If you need to edit the script, you'll have to add the '.txt' extension back. (Or, as the geeks will point out, edit with a UNIX editor like vi. I had to say that.)
This is as far as we'll go with a one line command. Once you get the hang of this and learn a whole lot more, you'll find yourself happily creating your own custom scripts—if you decide to learn Bash or one of the other UNIX shells available. A new door is open to create your own scripts, but you should, of course, learn much more about UNIX and scripting before you go wild with this newfound superpower. A really careless act could render your OS X corrupted and/or unbootable.
About the App
Mac Os Executable Format
- App name: dos2unix
- App description: Convert text between DOS UNIX and Mac formats
- App website: http://waterlan.home.xs4all.nl/dos2unix.html
Install the App
Command+Spaceand type Terminal and press enter/return key.
- Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish.
brew install dos2unix
Opening Unix Executable File Mac
Done! You can now use