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 create any variable as long as you respect those rules:

  • Do not create variable with the same names as the already available placeholders from the Variables section.
  • All variables have to be defined in the General group.
  • 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 how 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>