Automation
Automation uses technology to accomplish tasks with as little human interaction as possible. In computing, automation is usually accomplished by a program, a script, or batch processing.
For example, a website operator may write a script to parse the logs of the website traffic and generate a report. If done manually by a human, this process might take hours or days. However, a computer might complete these tasks in seconds and can be programmed to repeat the task several times a day.
When should you automate?
Any task performed more than once should be automated, even if it's a simple task that takes a few seconds. If a task takes five seconds to complete but needs to be performed ten times a day, automation can save you over four hours a year if completion time is reduced to one second.
How to automate?
The answer to this question depends on the type of task you want to automate. Below lists different methods and tools for automating tasks, from the simplest to the most complex.
Keyboard shortcuts
Computer keyboard shortcuts are a form of automation in that they allow you to complete an operating system or program task. For example, when you copy and paste text, you can duplicate text in multiple places without having to type the text.
Online services
Online services like IFTTT (If This Then That) help automate online tasks. For example, you could automate the job of automatically uploading any photo you post on Instagram to a Facebook album automatically.
Macros
A macro is a small segment of code created in a program to perform several commands. Although some programs allow you to record your actions to create a macro, most require you to know some code or commands.
AutoHotkey
AutoHotkey is a fantastic free Microsoft Windows program that automates almost anything in Windows. Using this tool, you can automate anything done with a keyboard or mouse on a computer. The scripts the program creates require AutoHotkey be running on the computer but also supports the ability to make self-running scripts.
Command line automation
For any tasks done through a command line, many different options are available to the users. Microsoft Windows users using the command line or MS-DOS can use batch files to automatically perform commands. Linux users can use any of the scripting languages mentioned below and also use cron to schedule tasks.
Scripts
Several scripting languages can run scripts to automate almost any task on a computer or the Internet. These languages require you to learn how to program but give you the most options compared to other solutions. Scripting languages include: JavaScript, Perl, PHP (PHP: Hypertext Preprocessor), and Python, and require the language to be installed on the computer so that it can be interpreted.
Creating a program
Creating a program to automate a task can take longer than any of the above options. However, for more complex tasks and improved speed may be the only option. To create a program, you'll need to learn how to program and a compiler to compile the program for the platform running the program.
When should you not automate?
Although automation helps with many tasks, there is still the following reason why you may not want to automate a task.
- The task is not repeated frequently enough.
- Task requires some human intelligence that cannot be programmed.
- There are too many unknown variables that make automation impossible.
- Protection, like CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart), prevents automation.
- Cannot justify the time or money required to program the automation.
For easy-to-do tasks that require a human and cannot be automated (e.g., identifying what's in a picture), consider services like Amazon's Mechanical Turk.
AI, Artificial intelligence terms, AutoHotkey, Batch file, Crowdsourcing, DevOps, Power Automate, Programming terms, Script, Software terms, Unsupervised