This document will go over my knowledge of the AppleScript programming language. Since I don't have a Macintosh or a functional MacOS virtual machine yet (I currently can't do virtual machines due to memory and export issues, as of 2021 November 24th) all examples here are not tested.
I don't know very much about this language either. I know a little bit, and this knowledge was obtained from Wikipedia.
AppleScript has multiple types of single line comments, depending on what version of MacOS you are using.
-- This is a standard single line comment # This is a single line comment if you use Mac OS X Leopard (10.5) or later (* This is a multi-line comment *) (* This is * also a * multi-line * comment *)
/!\ This example has not been tested yet, and may not work
There are 3 different ways to write a Hello World program in AppleScript, there isn't much I can add from this example, it is from Wikipedia.
display dialog "Hello, world!" -- a modal window with "OK" and "Cancel" buttons
/!\ This example has not been tested yet, and may not work
display alert "Hello, world!" -- a modal window with a single "OK" button and an icon representing the app displaying the alert
/!\ This example has not been tested yet, and may not work
say "Hello, world!" -- an audio message using a synthesized computer voice
/!\ This example has not been tested yet, and may not work
WARNING: this is NOT to be confused with printing a document to your screen. If you are running MacOS or an AppleScript compiler, this command may use your physical paper printer to print this out.
print page 1 print document 2 print pages 1 thru 5 of document 2
/!\ This example has not been tested yet, and may not work
WARNING: Make sure to save your work before running this command, as it may kill the program without a save prompt.
tell application "LibreOffice Writer" quit end tell
I replaced Wikipedias example of Microsoft Word with LibreOffice Writer, as it is more respectful to user privacy and is not proprietary.
/!\ This example has not been tested yet, and may not work
This loop will repeat indefinitely:
repeat display dialog "AppleScript is repeating a script..." end repeat
/!\ This example has not been tested yet, and may not work
This loop will repeat 5 times
repeat 5 times display dialog "ONE STAR!!!" end repeat
/!\ This example has not been tested yet, and may not work
-
AppleScript is not a semicolon and curly bracket language, instead, it uses this character:
¬ -
AppleScript was developed by Apple Inc.
-
AppleScript works on MacOS 7 and above
-
AppleScript commonly uses the
.applescriptfile extension, but it can also use the.scptand.scptdfile extensions (although I don't have them memorized, so I don't use them) -
AppleScript contains support for voice commands
-
AppleScript currently is a MacOS/iOS only language
-
AppleScript is a scripting language
-
No other knowledge of the AppleScript programming language.