How to create executable file in MAC OS

Follow steps mentioned below :

1. Open Text Edit. You will find it under Applications

Executable

2. Type commands which you exactly want to execute

   #!/bin/bash 
  
 appium --port 4725 --address 10.10.1.40

#!/bin/bash : This would always be your first line. Just write your command from 2nd line

appium –port 4725 –address 10.10.1.40 : Sample command to start Appium Server

Executable

3. Go to format and select “Make Plain Text” Option

Executable
Now your file will look like :

Executable

4. Just save the file and make sure to uncheck “if no extention is provided, use txt” check box

Executable

5. Now right click on file and click on “Get Info” and go to Sharing and Permissions section

Executable

6. Update Privilege to Read & write

Executable

6. Now open Terminal and execute following commands :

 cd desktop //You have to go to location where your file is stored. As I saved it in desktop folder

 chmod 700 TestFile  // This command will make your file executable and TestFile is File name

Executable

As soon as you run the above command, your text file will be changed in executable file

Executable

You are good to go now, Just double click on the executable file in order to run it

If you really like the information provided above, please don’t forget to like us on Facebook, you can also leave the comment.

Leave a Reply

Your email address will not be published. Required fields are marked *