Global environment
set
applicationPaths
to the applicationPaths
& newline & "/home/jdoe/bin/"
The applicationPaths
property determines or changes the list of file system paths searched by the open
command and the appPath
, appFile
, appOrDocPath
, and appOrDocFile
functions to locate applications or program files.
HyperTalk did not have this property but used an Applications
global variable for the same purpose. OpenXION avoids using any XION global variables for special purposes.
The default list of paths in OpenXION is, on Mac OS X:
/Applications/ /Applications/Utilities/ /Applications (Mac OS 9)/ ~/Applications/ /Developer/Applications/ /Developer/Applications/Utilities/ /bin/ /sbin/ /usr/bin/ /usr/sbin/ /usr/local/bin/ /usr/local/sbin/ /usr/shared/bin/ /usr/shared/sbin/ /opt/bin/ /opt/sbin/ /opt/local/bin/ /opt/local/sbin/ /opt/shared/bin/ /opt/shared/sbin/
On Windows:
C:\Program Files\ C:\Windows\ C:\Windows\System32\
On all other systems:
/bin/ /sbin/ /usr/bin/ /usr/sbin/ /usr/local/bin/ /usr/local/sbin/ /usr/shared/bin/ /usr/shared/sbin/ /opt/bin/ /opt/sbin/ /opt/local/bin/ /opt/local/sbin/ /opt/shared/bin/ /opt/shared/sbin/
(The ~
refers to the user's home directory.)
OpenXION reads the value of this property from a file at startup and writes it back to the file upon exit. This file is located at ~/Library/Preferences/com.kreative.openxion.conf
(on Mac OS X), ~\Application Data\OpenXION\xion.conf
(on Windows), or ~/.xion.conf
(on all other systems). This is a plain text file that can be edited with any text editor.
The applicationPaths
property is specific to OpenXION; it is not part of the XION Scripting Language Standard.
To change the value of this property, OpenXION's security settings must allow the SEARCH_PATHS
security key. If the required security key is denied, a script error will be triggered.