ArticleslgStudy

science

Active Scripting

Active Scripting is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Active Scripting rather than just read about it. In short: Active Scripting (formerly known as ActiveX Scripting) is the technology used in Windows to implement component-based scripting support. It is based on OLE Automation (part of COM) and allows installation of additional scripting engines in the form of COM modules.

Key takeaways

  • Active Scripting belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Active Scripting to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Active Scripting from memory before moving on to harder problems.

Reference excerpt

Active Scripting (formerly known as ActiveX Scripting) is the technology used in Windows to implement component-based scripting support. It is based on OLE Automation (part of COM) and allows installation of additional scripting engines in the form of COM modules.

Uses and history The Active Scripting technologies were first released in 1996, with the release of the Microsoft Internet Explorer 3.0 (August 1996) and Internet Information Services 3.0 products (December 1996). Usual applications of Active Scripting include Active Server Pages (ASP) server scripts, Internet Explorer, and Windows Script Host (WSH) scripts automating routine tasks, including use for login scripts, Registry manipulation, and the like. Other administrative uses include Windows Management Instrumentation and Active Directory Service Interfaces. Active Scripting can also be used for general-purpose tasks such as database programming, text processing, rapid prototyping, and application macro or scripting programming. Some applications use Active Scripting as their primary automation method, while others do not have a macro facility but make the components available for use via the API; or one may opt to add a language and/or tool not available by default, like programming Microsoft Excel in Perl or REXX rather than Visual Basic for Applications (VBA) or transferring data from a terminal emulator to word processor by way of a spreadsheet when they have dissimilar macro tools or none at all. For many of the above uses, Active Scripting is an addition to Windows that is similar to the functionality of Unix shell scripts, as well as an incremental improvement upon batch files (command.com), Windows NT style shell scripts (cmd.exe) and, by way of VBScript, the replacement for QBasic, which was last available on the supplementary disc for Windows 95. The majority of the languages used for Active Scripting mentioned below are glue languages, with Perl being the most commonly used third-party script engine. The interfaces to Active Scripting engines are public, so any developer can create applications that are programmable in Active Scripting languages as well as engines for additional languages.

Implementations Active Scripting engines are available for several languages. Some of the most popular include:

ActivePerl – Perl ActivePHP and PHPScript for PHP ActivePython – Python Delphi Fortran Haskell Lua REXX (multiple versions) Ruby Tcl VBScript and JScript for Windows versions after Windows 95, optional with CE Visual Basic for Applications (VBA) for Windows; and requires Microsoft Office, or other software packages that are VBA-programmable. XLNT XSLT In Windows, CScript.exe at the command line and WScript.exe running in the GUI are the main means of implementation of installed Active Script languages. Clicking on an icon or running from the command line, a script, the Run dialogue, etc. will by default run a plain text file containing the code. A Windows Script File (.wsf) is an XML file that can contain more than one script in more than one language in addition to other elements, and are executed by the Windows Script Host. Some software such as SecureCRT use the WSH functionality to allow automation by means of any installed scripting engine. The script host, related components, and engines are able to be integrated into and called from Windows applications just like any other component.

Retirement Active scripting is regarded complete, and no longer under active development by Microsoft. Furthermore, scripting engines will continue to be shipped with future releases of Microsoft Windows and IIS. Originally, the .NET Framework had a scripting technology of its own and a separate scripting IDE called Visual Studio for Applications (VSA), and the interfaces to the technology were also available via Active Scripting, allowing even .NET-unaware applications to be scripted using .NET languages. VSA was also meant to replace Visual Basic for Applications. However, that entire technology was deprecated in version 2.0 of the .NET Framework, leaving no clear upgrade path for applications desiring Active Scripting support (although "scripts" can be created in C#, VBScript, Visual Basic .NET, and other .NET languages, which can be compiled and executed at run-time via libraries installed as part of the standard .NET runtime). In 2006, Microsoft introduced Windows PowerShell, which can expose applications via PowerShell cmdlets or PowerShell providers.

See also ActiveX Dynamic Language Runtime

References

External links Windows Script Interfaces – Active Scripting documentation. Future of VBScript Language – Information about the future of Active Scripting technologies.

Worked examples

Example 1 — a first encounter with Active Scripting

Start with the simplest possible case. Write down what Active Scripting claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Active Scripting before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Active Scripting ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Active Scripting

In research
Active Scripting appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Active Scripting in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Active Scripting is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internet Explorer, Scripting languages, so understanding it makes those chapters shorter.
In everyday life
Look for Active Scripting outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Active Scripting” →

How to study Active Scripting in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Active Scripting means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Active Scripting out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Active Scripting in simple terms?

Active Scripting (formerly known as ActiveX Scripting) is the technology used in Windows to implement component-based scripting support. It is based on OLE Automation (part of COM) and allows installation of additional scripting engines in the form of COM modules.

Why does Active Scripting matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Active Scripting?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Active Scripting.

Tags

  • Internet Explorer
  • Scripting languages

Keep exploring