string doUrlSubstitution(string url, int replacementMode = 0)
Performs URL substitutions on the provided URL
Security
Trust Level Required: Medium Trust
Parameters
Name | Description |
url |
string The url to perform substitution on. |
replacementMode |
(Optional) int Indicates how to interpret URL: 0 - URL is a local non-URI-encoded file path (default), 1 - URL is already properly URI-encoded, 2 - URL is not yet URI-encoded |
Return
The provided URL with substitution replacements made.
Remarks
The subsitution variables defined by KioWare are $$KIO_USERDATA$$ and $$KIO_PROGDATA$$. Machine-Specific variables can be defined in the Advanced tab settings.
Examples
var modes = 3;
for(var i = 0; i < modes; i++) {
console.log(KioApp.doUrlSubstitution("$$KIO_USERDATA$$", i))
}
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.