Top | Previous | Next |
system.util.getProperty |
Description Retrieves the value of a named system property. Some of the available properties are:
Syntax system.util.getProperty(propertyName) Parameters String propertyName - The name of the system property to get. Returns String - The value for the named property. Scope All Examples This script would store the contents of the Text Area component in the users home directory.
homeDir = system.util.getProperty("user.home") sep = system.util.getProperty("file.separator") path = "%s%smyfile.txt" %(homeDir, sep) system.file.writeFile(path, event.source.parent.getComponent("Text Area").text)
|