AppleScript Scripting Language
An AppleScript Scripting Language is a scripting language that facilitates automated control over scriptable Mac applications.
- Context:
- It was created by Apple Inc.
- It can (often) be used to facilitate Inter-Application communication (IAC) using Apple events.
- …
- Example(s):
- a modal window displaying text "Hello world!" in a dialog, with "Cancel" and "OK" buttons:
display dialog "Hello, world!"
- a modal window displaying the alert with text "Hello, world" and a single "OK" button:
display alert"Hello, world!"
- an audio message using a synthesized computer voice saying "Hello world!":
say "Hello, world!"
- …
- a modal window displaying text "Hello world!" in a dialog, with "Cancel" and "OK" buttons:
- Counter-Example(s):
- Swift scripting (with Swift).
- Apple Scripting Bridge.
- See: MacOS Automator Software, AppleScript Library, AppleScript Studio, AppleScriptObjC, Programming Paradigm, Inter-Process Communication, Apple Event, Scripting Additions, Structured Programming, REXX, Procedural Programming, Object-Oriented Programming.
References
2022
- (Wikipedia, 2022) ⇒ https://en.wikipedia.org/wiki/AppleScript Retrieved:2022-11-23.
- AppleScript is a scripting language created by Apple Inc. that facilitates automated control over scriptable Mac applications. First introduced in System 7, it is currently included in all versions of macOS as part of a package of system automation tools.[1] [2] The term "AppleScript" may refer to the language itself, to an individual script written in the language, or, informally, to the macOS Open Scripting Architecture that underlies the language.[1][2]
(...)
AppleScript is primarily a scripting language developed by Apple to do inter-application communication (IAC) using Apple events.[1][2] AppleScript is related to, but different from, Apple events. Apple events are designed to exchange data between and control other applications in order to automate repetitive tasks.
AppleScript has some processing abilities of its own, in addition to sending and receiving Apple events to applications. AppleScript can do basic calculations and text processing, and is extensible, allowing the use of scripting additions that add new functions to the language. Mainly, however, AppleScript relies on the functionality of applications and processes to handle complex tasks. As a structured command language, AppleScript can be compared to Unix shells, the Microsoft Windows Script Host, or IBM REXX but it is distinct from all three. Essential to its functionality is the fact that Macintosh applications publish "dictionaries" of addressable objects and operations.
AppleScript has some elements of procedural programming, object-oriented programming (particularly in the construction of script objects), and natural language programming tendencies in its syntax, but does not strictly conform to any of these programming paradigms.[2]
- AppleScript is a scripting language created by Apple Inc. that facilitates automated control over scriptable Mac applications. First introduced in System 7, it is currently included in all versions of macOS as part of a package of system automation tools.[1] [2] The term "AppleScript" may refer to the language itself, to an individual script written in the language, or, informally, to the macOS Open Scripting Architecture that underlies the language.[1][2]
- ↑ 1.0 1.1 1.2 Goldstein, Adam (2005). AppleScript: the missing manual. Sebastopol, CA: O'Reilly Media. ISBN 0596008503. OCLC 56912218.
- ↑ 2.0 2.1 2.2 2.3 Sanderson, Hamish; Rosenthal, Hanaan (2009). Learn AppleScript: the comprehensive guide to scripting and automation on Mac OS X (3rd ed.). Berkeley: Apress. doi:10.1007/978-1-4302-2362-7_27. ISBN 9781430223610. OCLC 308193726.