The intended usage pattern is that you only ever create templates. To Edit a template, you create a new script based on an existing template, make changes, and save over the existing template.
If you really want to edit a template in-place, you'll need to locate the template source file within the
~/Library/Application Support/Script Debugger 6/Templates directory. Each template is stored in a bundle with a
.sdtemplate extension. There are two files: the template script (
Template.scptd) and its meta-data (
You can edit the Template script file if you like. The meta-data can also be edited with anything that can handle property list files.
Note that only content (source, libraries, breakpoints, etc.) from template files are used. All view related settings are taken from the current default view settings (as set with the Windows>Save Script Size & State command).
Here are all the supported meta data Property List keys:
Description - the description that appears for this template in the template chooser
MainTemplateFile - the name of the script file to use
BreakpointsEnabled - are breakpoints enabled?
BreakOnExceptions - is break on exceptions enabled?
AutoIncrementBuildNumber - should build numbers be incremented on save?
CodesignIdentity - the code signing identity to use
PersistentGlobals - are global variables persistent?
HideCodeFolding - hide code folding?
RunInForeground - unused
CocoaTermsInProperties - use properties for Cocoa terms?