Script[scriptcode]
defines a script to be used either on load or during an event.


Script
Script[scriptcode]
defines a script to be used either on load or during an event.
Details and Options
- To use Script, you first need to load GUIKit using Needs["GUIKit`"].
- Script is used to associate scripting code either as general code to be executed when the widget definition is read in or as code bound to a specific event, to be executed each time the event occurs within a BindEvent expression.
- By default, the language of a Script is Wolfram Language code unless an alternate language is specified. You can use Language -> "xml" to specify that the content of the Script is a string of GUIKitXML.
- Script is HoldAllComplete so that evaluation does not occur when processing Script blocks.
- The following options can be given:
-
Language Automatic the language the script code is written in ScriptSource None an external file that contains the script code
See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), Script, Wolfram Language function, https://reference.wolfram.com/language/GUIKit/ref/Script.html.
CMS
Wolfram Language. 2007. "Script." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/Script.html.
APA
Wolfram Language. (2007). Script. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GUIKit/ref/Script.html
BibTeX
@misc{reference.wolfram_2025_script, author="Wolfram Research", title="{Script}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/Script.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_script, organization={Wolfram Research}, title={Script}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/Script.html}, note=[Accessed: 15-August-2025]}