2022.2

Table Of Contents
TomakeanewfolderontheScriptspane:
1. IntheScriptspane,clicktheblacktriangleontheNewbutton.
2. ClickFolder.Thefolderwillappearinthelistofscripts.
3. Changethenameofthenewfolder:right-clickthefolderandclickRename.
4. Dragscriptstothefolder.
Tip: Itmaybehelpfultoputscriptsthathaveaneffectonthesamecontextorsectioninone
folder,becauseyoucansettheexecutionscopeofscriptsperfolder(see:"Executionscope"
below).
Note: Controlscriptsarealwaysexecutedfirst,regardlessofwheretheyareintheScriptspane.
Theycannotbeexcludedfromexecutionforaspecificcontextorsection,usingtheexecution
scopeofafolder;see"Executionscope"below.Whatyoucandoisdisablethescriptorthecon-
tainingfolder;see"Enable/disablescripts"onthefacingpage.
Executionscope
Aparticularscriptmaybeusedinonecontextorsection,butnotinothercontextsorsections.Never-
theless,whenprocessingthetemplate,theDesignertriestofindtheselectorofeachscriptinallcon-
textsandsections–unlessthescriptislocatedinascriptsfolderforwhichtheexecutionscopehas
beensettotherelevantcontextsorsections.So,settingtheexecutionscopeofafoldersavespro-
cessingtime.
Tochangetheexecutionscopeofascript:
1. Putthescriptinafolder;see"Scriptfolders"onthepreviouspage.
2. Right-clickthefolder,andthenclickProperties.
3. Checkthecontextsandsectionsforwhichthescriptsinthisfoldershouldrun.
Note: Controlscriptsarealwaysexecutedfirst,regardlessofwheretheyareintheScriptspane.
Theycannotbeexcludedfromexecutionforaspecificcontextorsection,usingtheexecution
scopeofafolder;see"Executionscope"above.Whatyoucandoisdisablethescriptorthecon-
tainingfolder;see"Enable/disablescripts"onthefacingpage.
Tip: Formorewaystooptimizescripts,see"Optimizingscripts"onpage380.
Enable/disablescripts
Adisabledscriptwillnotrunatallwhenthetemplateismergedwitharecordsettogenerateoutput.Dis-
ablingscriptexecutionincertaincontextsorsectionshelpswithperformance,sincescriptsnormally
Page 375