Scripting language

From wiki.gis.com
(Redirected from Script)
Jump to: navigation, search

A scripting language, script language or extension language is a programming language that allows control of one or more software applications. "Scripts" are distinct from the core code of the application, as they are usually written in a different language and are often created or at least modified by the end-user.[1] Scripts are often interpreted from source code or bytecode, whereas the applications they control are traditionally compiled to native machine code.[2]

Scripting in GIS Software

A major class of scripting languages has grown out of the automation of job control, which relates to starting and controlling the behavior of system programs. In ArcGIS Desktop, users are able to automate tasks, such as geoprocessing, using scripting languages, such as Visual Basic and Python. As of version 10, both Python[3] and Visual Basic for Applications (VBA)[4] are supported, but Esri has stated that future versions of ArcGIS Desktop will not support VBA.

Code Examples

Python

print "Hello, World!"

[5]

VBA

Public Module modmain
   Sub Main()
     Console.WriteLine ("Hello World using Visual Basic!")
   End Sub
End Module

[6]

Perl

#!/usr/bin/perl
print "Hello, World!\n";
[7]

Notes

  1. IEEE Computer, 2008, In praise of scripting, Ronald Loui author
  2. Brown, Vicki. ""Scripting Languages"". Retrieved 2009-07-22.
  3. What Is Python?
  4. Deprecation Plans
  5. Python hello world script
  6. Visual Basic hello world script
  7. Perl Hello World Wikiversity tutorial