Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
Scripts are lists of commands executed by certain programs or scripting engines. They are usually text documents with instructions written using a scripting language. They are used to generate Web pages and to automate computer processes.
Scripts are sometimes used to customize and automate repeated tasks and control overall computer functions. Autoexec.bat is an example of such a script. Visual Basic and DOS scripts run processes on Windows, while Apple scripts automate tasks on Mac machines. When scripts are opened through scripting engines, commands in the scripts are executed.
Macros are common scripts. They interact with the system-generated graphics windows, buttons, and menus to simulate user actions. They also record keystrokes to facilitate repetitive tasks and execute them with fewer keystrokes. Every computer user uses scripts of some kind, even if they are not aware of it. Scripts that install new software are used by most users. They take the user step by step through the installation process, stopping at points where different choices are provided.
The Internet uses a variety of scripting languages to provide useful function for users. They are either stored on the server or written to Web pages. Such scripts query databases, count visitors and process forms. They may control other software applications. Scripts are different from the core code of the application because they are written in a different language and can be altered and created by end users.