Skip to main content

General

Key name: General
Element type: Dictionnary
Status: Optional

All the variables that can be used to populate strings. See the Variables section to know more about how to use them.

Keys

NameTypeRequired
VariablesDictionary

Detail

Variables

Type: Dictionary
Explanation: Contains the variables to use in the rest of the configuration file.

note

You can use other variables when defining one variable as long you respect those rules:

  • You can use the available placeholders from the Variables section.
  • Do no use variables that are not defined in the General configuration.
  • Do not define a variable A to be used in variable B and the variable B to be used in variable A. If you do so, none of the implied variables will be available in Octory.

Examples

Here we define two variables to be reused elsewhere in the configuration file: "ResourcesPath" and "ApplicationIconsPath". Note that we use the USER_NAME placeholder.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ... -->
<key>General</key>
<dict>
<key>Variables</key>
<dict>
<key>ResourcesPath</key>
<string>Users/${USER_NAME}/Desktop/Octory</string>
<key>ApplicationIconsPath</key>
<string>${ResourcesPath}/ApplicationIcons</string>
</dict>
</dict>
<!-- ... -->
</dict>
</plist>