Author Topic: Make A Simple Script File Become A Mac Executable  (Read 6238 times)

Dragon

  • Administrator
  • Platinum Level
  • *****
  • Posts: 4879
  • Have you played my board game?
    • Rival Troops
Make A Simple Script File Become A Mac Executable
« on: May 12, 2021, 22:56:25 »
Want to turn a Bash Script into a regular kind of Desktop executable on your MacOS? Here's a pretty simple way you can do to make it fit right in with other stuff on the Desktop.

I'm assuming you already know about making an executable bash script that can be run from the command line.

Copy your .sh file to the desktop and add .command as the new file extension. Now, when you double-click this icon it will open the Terminal and run your Bash Script.

To change the icon to something more fitting... I found it to be a little unusual but basically you copy and paste the icon into the Get Info window. Screenshots and more info about that can be found at https://support.apple.com/guide/mac-help/change-icons-for-files-or-folders-on-mac-mchlp2313/mac

Ok. Not much to see here, but just a reminder that there are options.  :D
"Gee Brain, what are we gonna do tonight?" "The same thing we do every night, try to take over the world!" --Pinky and the Brain

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email: