How to Convert Terminal Commands into Applications

How to Convert Terminal Commands into Applications

Through Terminal, we can perform a large number of actions that we cannot find natively in the operating system itself, but in some third-party applications. Many of us are the users who habitually use the terminal to carry out specific actions such as hiding the desktop icons, restarting the Finder ...

These command lines, which if we are very knowledgeable about macOS, are not easy to learn and we have them pointed out in the Notes application, to copy and paste the commands once we have opened Terminal. This process it is a waste of time that we can automate through Automator.

Automator, as its name describes well, allows us to carry out a series of actions together just by pressing a button. Also, it allows us to run Terminal command lines to perform those actions that are not available natively in macOS. Here we explain the steps to follow to convert Terminal command lines into applications.

Convert Terminal Command Lines to Applications

The first thing to do is to open Automator, an application that is located in the folder used within the Launchpad. Next, in the window that shows the Automator files that we have created previously (if we have created any), click on the lower left corner New document.

How to Convert Terminal Commands into Applications

  • In the Select a document type window, Let's polish on Application. During this process, we want to turn a command line into an application so that when it is run, it automatically takes care of opening terminal and executing that line or lines.
  • Then in the column Actions, click on Profit Share and within used, in the drop-down that is shown on the right in Run the Shell script

How to Convert Terminal Commands into Applications

  • Then we write the / s terminal line / s that we want to run automatically in the textbox.

How to Convert Terminal Commands into Applications

  • Finally, we must record it with a name that allow us to quickly recognize what is your action.

If we have saved these applications inside the iCloud Automator folder, we must make a shortcut (Alias) to be able to place it on the desktop, in the application dock or any other place to always have it at hand.


Be the first to comment

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.