Editing Snippets

Existing eScript snippets can be edited in a separate view in the Packaging Workbench. Use the Extended Script Editor to edit the snippets. Also, you can customize the existing variables here.

How to edit existing eScript snippets:

  • Open the view in the Packaging Workbench for any eScript package.
  • Select the snippet you want to edit in the editing area of the Extended Script Editor.
    The Extended Script Editor for eScripts provides the same editing options.

    Any changes to the sequence of the commands that refer to registered variables or files of the snippet must be entered manually in the snippet file and/or in the file system. Note that these changes are not applied automatically!

    If you want to add new commands to the snippet in the Extended Editor, note that variables or registered files are not used! Make sure to customize the snippet when required.
    We recommend adding the snippet to an eScript, changing the command sequence there and then dragging the edited commands back to the snippet tree as a new snippet. In this case, the variables and files contained in the snippet are determined and stored from scratch.

  • If necessary, edit the snippet folder or the individual snippets in the tree.
    The following editing options are available, either on the context menu, as an option or interactively:
    FunctionDescription
    For individual snippets
    Copy Ctrl+C)

    Copies the snippet to the clipboard.

    DeleteDeletes the snippet completely.
    RenameSpecifies a new name for the snippet. The folder with the same name is automatically renamed, too.
    Show in Explorer

    Opens the Windows Explorer and shows the snippet in the file system.

    Here you can change the snippet file and the folder of the associated files independent of the Packaging Workbench. Note to implement the changes consistently. In particular, the variables and files used in the command sequence must match the variables and files registered in the snippet file and also the files in the file system!

    Variables....

    Opens a dialog that shows the variables contained in the snippet.

    The following editing options are available:

    • Select a variable name and press <F2> to change the name.
    • Click the value of a variable to change its default value.
    • Remove the check mark in front of a variable to prevent the variable from being changed. Thus the variable is not displayed as changeable when the snippet is inserted.

    These changes are also applied to the command sequence of the snippet.

    For snippet folders
    Show files in treeDisplays the files folders of the snippets and the registered files in the Snippets view (next to the snippet folders and the snippets).
    Show in ExplorerOpens the Windows Explorer and shows the snippet in the file system.
    Insert (Ctrl+V)

    Inserts a command sequence or a copied snippet from the clipboard to the snippet folder and creates a new snippet automatically.

    This option is available for the My Snippets and Common Snippets folders and for their child folders with the exception of the file folders of the snippets.

    Create Folder

    Creates a new folder in the snippet folder.

    This option is available for the My Snippets and Common Snippets folders and for their child folders with the exception of the file folders of the snippets.

    Delete

    Deletes the selected folder including all contained snippets or folders.

    The default folders and the file folders of the snippets cannot be deleted.

    Rename

    Renames the folder.

    The default folders and the file folders of the snippets cannot be renamed.

  • Save the changes to the command sequence, if required, and close the Packaging Workbench.

    The changed snippets are available to the DSMC users in all eScript packages (depending on the parent snippet folder).