{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "Z.ScratchFile",
    "category": "U.General",
    "trDescription": "Creates a scratch buffer using a temporary file.",
    "trDisplayName": "Scratch Buffer",
    "trDisplayCategory": "General",
    "platformIndependent": true,
    "enabled": "%{JS: value('Plugins').indexOf('TextEditor') >= 0}",

    "options": [ { "key": "TargetPath", "value": "%{JS: Util.mktemp('scratch-XXXXXX.txt')}" } ],

    "pages" : [],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.txt",
                "target": "%{TargetPath}",
                "overwrite": true,
                "openInEditor": true
            }
        }
    ]
}
