Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Applescript

Applescript - Programming language

< >

Applescript is a programming language created in 1993.

#129on PLDB 30Years Old 1.2kUsers
15Books 1Papers 3kRepos

AppleScript is a scripting language created by Apple Inc. and built into the Classic Mac OS since System 7 and into all versions of macOS. The term "AppleScript" may refer to the scripting system itself, to an individual script written in the AppleScript language, or to the language itself.. Read more on Wikipedia...


Example from hello-world:
display dialog "Hello World"
-- "Hello World" in AppleScript: display dialog "Hello World"
Example from Linguist:
(* Get User Name This script uses UI element scripting to get the name for the current user. If "Enable access for assistive devices" is not checked, this script will open the Universal Access System Preference and ask the user to check the checkbox. Copyright 2007 Apple Inc. You may incorporate this Apple sample code into your program(s) without restriction. This Apple sample code has been provided "AS IS" and the responsibility for its operation is yours. You are not permitted to redistribute this Apple sample code as "Apple sample code" after having made changes. If you're going to redistribute the code, we require that you make it clear that the code was descended from Apple sample code, but that you've made changes. *) tell application "System Preferences" activate set current pane to pane "com.apple.preferences.users" end tell tell application "System Events" if UI elements enabled then tell tab group 1 of window "Accounts" of process "System Preferences" click radio button 1 delay 2 get value of text field 1 end tell else tell application "System Preferences" activate set current pane to pane "com.apple.preference.universalaccess" display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\"" end tell end if end tell
Example from Wikipedia:
tell application "Finder" set anyNumber to my (random number from 5 to 50) end tell

Language features

Feature Supported Token Example
Integers ✓
-- [-+]?\d+
Floats ✓
-- [-+]?(\d+\.\d*|\d*\.\d+)(E[-+][0-9]+)?
Strings ✓ "
"Hello world"
MultiLine Comments ✓ (* *)
(* A comment
*)
Print() Debugging ✓ display dialog
Line Comments ✓ --
-- A comment
Message Passing ✓
Garbage Collection ✓
Comments ✓
Semantic Indentation X

Books about Applescript on goodreads

title author year reviews ratings rating
AppleScript for Dummies Tom Trinko 1995 1 4 3.75
AppleScript Programming for the Absolute Beginner Jerry Lee Ford Jr. 2007 0 5 3.20
AppleScript Pocket Reference: The Essential AppleScript Language Reference Matt Neuburg 2006 0 0 0.0

Books about Applescript from ISBNdb

title authors year publisher
Apple Training Series: AppleScript 1-2-3 Soghoian, Sal and Cheeseman, Bill 2009 Peachpit Press
Beginning AppleScript Kochan, Stephen G. 2004 John Wiley &Sons
AppleScript For Dummies Trinko, Tom 2004 For Dummies
AppleScript Programming for the Absolute Beginner Ford Jr., Jerry Lee 2007 Cengage Learning PTR
AppleScript Studio Programming for the Absolute Beginner Ford, Jr. Jerry Lee 2006 Cengage Learning PTR
AppleScript in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly)) Perry, Bruce W. 2001 O'Reilly Media
AppleScript for Applications (Visual QuickStart Guide) Wilde, Ethan 2001 Peachpit Pr
Applescript Neuburg, Matt. 2006 O'reilly
AppleScript in a Nutshell Bruce W. Perry 20010606 O'Reilly Media, Inc.
AppleScript in a Nutshell Bruce W. Perry 20010606 O'Reilly Media, Inc.
Apple Automator with AppleScript Bible Thomas Myer 2009-10-29 Wiley
Applescript Programming For The Absolute Beginner Jerry Lee Jr. Ford 2007 Course Technology Ptr

Publications about Applescript from Semantic Scholar

title authors year citations influentialCitations
AppleScript W. Cook 2007 19 1
cil.html · applescript.html · oberon.html

View source

- Build the next great programming language · Search · Day 214 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com