<li class="Bulleted"><a href="22-Scripting8.html#1004406">Opening a Script</a></li><br/>
<li class="Bulleted"><a href="22-Scripting8.html#999284">Working with Script Instructions</a></li><br/>
<li class="Bulleted"><a href="22-Scripting8.html#1003942">Creating a New Script</a></li><br/>
<li class="Bulleted"><a href="22-Scripting8.html#1003958">Adding a Keyboard Shortcut for a Script</a></li><br/>
</td>
</tr>
</table>
<blockquote>
<h2 id="999234" class="Heading1">
<a name="999234"> </a>Editing Scripts
</h2>
<p id="999238" class="Body">
<a name="999238"> </a>Corel Painter lets you edit your scripts. You can cut, copy, and paste steps to change script behavior. You must first open the script before you can edit.
</p>
<h3 id="1004406" class="Heading2">
<a name="1004406"> </a>Opening a Script
</h3>
<h5 id="1004408" class="ToDoHead">
<a name="1004408"> </a>To open a script for editing
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1004409"> </a>On the Scripts palette, click the palette menu arrow and choose Open Script. </li>
<li class="SmartList1" value="2"><a name="1003919"> </a>In the dialog box, choose a script and click Open. </li>
<p id="1004631" class="ToDoBody">
<a name="1004631"> </a>Corel Painter displays the script's instructions in the Script list.
</p>
<p id="1004429" class="ToDoBody">
<a name="1004429"> </a>If the script you want is in a different library, click Open Library.
<li class="SmartList1"><a name="1006108"> </a>The open script becomes the current script and is displayed in the Script selector. If you choose another script from the Script selector, the open script does not change.</li>
</ul>
<h5 id="1004437" class="ToDoHead">
<a name="1004437"> </a>To close an open script
</h5>
<ul>
<li class="SmartList1"><a name="1003931"> </a>On the Scripts palette, click the palette menu arrow and choose Close Script. </li>
</ul>
<h3 id="999284" class="Heading2">
<a name="999284"> </a>Working with Script Instructions
</h3>
<p id="1004493" class="Body">
<a name="1004493"> </a>You can edit a script to change the order of instructions, remove an instruction, or add a segment from a different script.
</p>
<p id="1004494" class="Body">
<a name="1004494"> </a>An open script displays in the Script list as a series of instructions, each with a triangle at its left. You can click the triangle to open the instruction and see the steps or parameters it uses. Most of these parameters can be edited by double-clicking them.
</p>
<p id="1004498" class="Body">
<a name="1004498"> </a>Corel Painter always records every action you take in the "always script." This script appears as (Current Script) in the Open Script dialog. You cannot edit the "always script." However, if you open this script, you can copy instructions from it and paste them into another script. In this way, you can easily record recently taken steps into a script.
</p>
<h5 id="999285" class="ToDoHead">
<a name="999285"> </a>To select one or several instructions
</h5>
<ul>
<li class="SmartList1"><a name="999286"> </a>You can select a single instruction by clicking it. </li>
<li class="SmartList1"><a name="999287"> </a>You can select multiple instructions by holding down Shift and clicking each instruction.</li>
<li class="SmartList1"><a name="999288"> </a>You can select all instructions in a script by clicking the palette menu arrow and choosing Select All.</li>
<li class="SmartList1"><a name="1004647"> </a>You can deselect all selected script instructions by clicking the palette menu arrow and choosing Deselect.</li>
</ul>
<h5 id="1004649" class="ToDoHead">
<a name="1004649"> </a>To copy, cut, and paste instructions
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1004650"> </a>Select one or more instructions.</li>
<li class="SmartList1" value="2"><a name="999296"> </a>Click the palette menu arrow and choose Cut or Copy.</li>
<li class="SmartList1" value="3"><a name="999297"> </a>Select the instruction before which you want to paste. </li>
<li class="SmartList1" value="4"><a name="1004653"> </a>Click the palette menu arrow and choose Paste.</li>
<li class="SmartList1"><a name="1006122"> </a>Corel Painter stores copied instructions on the Clipboard, so you can close one script, open another, and paste the instructions there.</li>
</ul>
<h3 id="1003942" class="Heading2">
<a name="1003942"> </a>Creating a New Script
</h3>
<h5 id="1003943" class="ToDoHead">
<a name="1003943"> </a>To create a new script
</h5>
<ol type="1">
<li class="SmartList1" value="1"><a name="1003944"> </a>On the Scripts palette, click the palette menu arrow and choose<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline"> </span>New Script.</li>
<li class="SmartList1" value="2"><a name="1003945"> </a>You can now build a script by copying segments from other scripts and pasting them into the new script.</li>
</ol>
<h3 id="1003958" class="Heading2">
<a name="1003958"> </a>Adding a Keyboard Shortcut for a Script
</h3>
<p id="1003960" class="Body">
<a name="1003960"> </a>Do you have a script that you run frequently? When you create a script, you can give it a keyboard shortcut by adding "\[letter]" to the script name. The script shortcut is used by pressing <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Command</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">K</span>+[letter] (Mac OS) or <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Ctrl</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">K</span>+[letter] (Windows). For example, a script named "Myscript\T" can be played by pressing <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Command</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">K</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">T</span> (Mac OS) or <span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">Ctrl</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">K</span>+<span style="color: #000000; font-style: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline">T</span> (Windows). You can create shortcuts for as many scripts as there are letters in the alphabet.