AppleScript Scripting Language: Difference between revisions
m (Text replacement - "> ↵" to "> ") |
m (Text replacement - "ions]] " to "ion]]s ") |
||
Line 21: | Line 21: | ||
=== 2022 === | === 2022 === | ||
* (Wikipedia, 2022) ⇒ https://en.wikipedia.org/wiki/AppleScript Retrieved:2022-11-23. | * (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 [[Macintosh|Mac]] [[Application software|applications]]. First introduced in [[System 7]], it is currently included in all versions of [[macOS]] as part of a package of system automation tools.<ref name="Goldstein">Goldstein, Adam (2005). [https://books.google.com/books?id=-ynfWvkwzpwC AppleScript: the missing manual]. Sebastopol, CA: O'Reilly Media. ISBN 0596008503. [https://www.worldcat.org/oclc/56912218 OCLC 56912218].</ref> <ref name="Sanderson">Sanderson, Hamish; Rosenthal, Hanaan (2009). [https://books.google.com/books?id=_40AkCe9nOUC Learn AppleScript: the comprehensive guide to scripting and automation on Mac OS X (3rd ed.)]. Berkeley: Apress. [https://doi.org/10.1007%2F978-1-4302-2362-7_27 doi:10.1007/978-1-4302-2362-7_27]. ISBN 9781430223610. [https://www.worldcat.org/oclc/308193726 OCLC 308193726].</ref> 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|Open Scripting Architecture]] that underlies the language.<ref name="Goldstein"/><ref name="Sanderson"/><P>(...)<P> AppleScript is primarily a scripting language developed by Apple to do [[Inter-process communication|inter-application communication]] (IAC) using [[Apple event]]s.<ref name="Goldstein"/><ref name="Sanderson"/> 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. <P> 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|scripting | ** '''AppleScript''' is a [[scripting language]] created by [[Apple Inc.]] that facilitates automated control over scriptable [[Macintosh|Mac]] [[Application software|applications]]. First introduced in [[System 7]], it is currently included in all versions of [[macOS]] as part of a package of system automation tools.<ref name="Goldstein">Goldstein, Adam (2005). [https://books.google.com/books?id=-ynfWvkwzpwC AppleScript: the missing manual]. Sebastopol, CA: O'Reilly Media. ISBN 0596008503. [https://www.worldcat.org/oclc/56912218 OCLC 56912218].</ref> <ref name="Sanderson">Sanderson, Hamish; Rosenthal, Hanaan (2009). [https://books.google.com/books?id=_40AkCe9nOUC Learn AppleScript: the comprehensive guide to scripting and automation on Mac OS X (3rd ed.)]. Berkeley: Apress. [https://doi.org/10.1007%2F978-1-4302-2362-7_27 doi:10.1007/978-1-4302-2362-7_27]. ISBN 9781430223610. [https://www.worldcat.org/oclc/308193726 OCLC 308193726].</ref> 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|Open Scripting Architecture]] that underlies the language.<ref name="Goldstein"/><ref name="Sanderson"/><P>(...)<P> AppleScript is primarily a scripting language developed by Apple to do [[Inter-process communication|inter-application communication]] (IAC) using [[Apple event]]s.<ref name="Goldstein"/><ref name="Sanderson"/> 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. <P> 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|scripting addition]]s 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 programming|structured]] command language, AppleScript can be compared to [[Unix shell]]s, 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. <P> 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 paradigm]]s.<ref name="Sanderson"/> | ||
<references/> | <references/> | ||
Latest revision as of 07:27, 22 August 2024
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]
- ↑ Jump up to: 1.0 1.1 1.2 Goldstein, Adam (2005). AppleScript: the missing manual. Sebastopol, CA: O'Reilly Media. ISBN 0596008503. OCLC 56912218.
- ↑ Jump up to: 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.