User Tools

Site Tools


dictionary

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dictionary [2017/02/24 15:28] – external edit 127.0.0.1dictionary [2023/04/08 19:12] (current) James Sentman
Line 1: Line 1:
-====Scripting Dictionary====+=====Scripting Dictionary=====
  
 Scripts provide real flexibility in all good automation systems. Xtension scripts are written in Apple's standard scripting language AppleScript, and can be simple or very complex. Scripts provide real flexibility in all good automation systems. Xtension scripts are written in Apple's standard scripting language AppleScript, and can be simple or very complex.
Line 10: Line 10:
  
 Using XTension and AppleScript you can personalize a home system or create a complete facility management system for a shopping mall or greenhouse. Using XTension and AppleScript you can personalize a home system or create a complete facility management system for a shopping mall or greenhouse.
- +----- 
-===Scripts are really programs.===+====Scripts are really programs====
  
 Ignoring all of the infra-structure beneath them, each script in itself is a tiny program. It's purpose is either to react to some autonomous event such as a movement sensor, or to guard any attempted change to some controlled device such as a hot plate. Ignoring all of the infra-structure beneath them, each script in itself is a tiny program. It's purpose is either to react to some autonomous event such as a movement sensor, or to guard any attempted change to some controlled device such as a hot plate.
Line 19: Line 19:
 You may want to do different things according to the time of day or day of the week or whether other movement sensors have indicated that there hasn't been movement "inside" for more than an hour. You may want to do different things according to the time of day or day of the week or whether other movement sensors have indicated that there hasn't been movement "inside" for more than an hour.
  
-===Global Scripts===+----- 
 +====Global Scripts====
 Sometimes it is useful to have common scripts which can be executed on demand. Sometimes it is useful to have common scripts which can be executed on demand.
  
Line 26: Line 27:
 These scripts are called **Global Scripts** because they can be executed from the menu __and__ from other scripts. These scripts are called **Global Scripts** because they can be executed from the menu __and__ from other scripts.
  
-===Special Scripts===+ 
 +----- 
 +====Special Scripts====
 There are special names you can give **global scripts** that will tell XTension to run them under special circumstances. For example if you create a **global script** named "Startup Script", XTension will run it everytime that XTension starts up. Likewise, the script name "Shutdown Script" will be executed any time that XTension is told to quit. Neither of these script is required, however you find useful applications for them.  There are special names you can give **global scripts** that will tell XTension to run them under special circumstances. For example if you create a **global script** named "Startup Script", XTension will run it everytime that XTension starts up. Likewise, the script name "Shutdown Script" will be executed any time that XTension is told to quit. Neither of these script is required, however you find useful applications for them. 
  
 See the [[:manual:special scripts|Special Scripts]] section for more info about these. See the [[:manual:special scripts|Special Scripts]] section for more info about these.
  
-===AppleScript===+----- 
 +====AppleScript====
 The MacOS provides a powerful scripting facility with AppleScript. Almost anything that can be one with a Mac or Mac application can be controlled or enhanced by scripts which can in themselves be "applets". The MacOS provides a powerful scripting facility with AppleScript. Almost anything that can be one with a Mac or Mac application can be controlled or enhanced by scripts which can in themselves be "applets".
  
Line 53: Line 57:
 </code> </code>
  
-===The XTension Dictionary===+----- 
 +====The XTension Dictionary====
  
  
-{{indexmenu>dictionary#1|js#IndexMenu+ajax}}+{{indexmenu>:dictionary#1|js#doku}}
dictionary.1487950097.txt.gz · Last modified: 2023/02/13 14:51 (external edit)