Properties

programPaths

Supported By

Applies To

Global environment

Example

set programPaths to the programPaths & newline & "/home/jdoe/bin/"

Description

The programPaths 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.

Notes

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 programPaths property is specific to OpenXION; it is not part of the XION Scripting Language Standard.

Security

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.

Synonym

applicationPaths

See Also

open, appPath, appFile, appOrDocPath, appOrDocFile