在复制到新文档的模板中创建脚本

时间:2019-03-15 03:51:23

标签: google-apps-script google-docs

我有一个Google文档模板,其中包含一个脚本,该脚本允许插入预格式化的文本块。这是脚本的顶层:

{
    "payload" : 
{
  "protocol_version" : "0.0.2",
  "configuration" : {
    "version" : "5.16.0.238 (2018-06/99d74f7f6ee)",
    "tlc" : "normal",
    "sigsgev" : "altstack",
    "notifications" : "kqueue",
    "architecture" : "amd64",
    "disabled_features" : "none",
    "smallconfig" : "disabled",
    "bigarrays" : "disabled",
    "softdebug" : "enabled",
    "interpreter" : "enabled"
  },
  "memory" : {
    "Resident Size" : "301850624",
    "Virtual Size" : "6042132480",
    "minor_gc_time" : "805247",
    "major_gc_time" : "112614",
    "minor_gc_count" : "18",
    "major_gc_count" : "1",
    "major_gc_time_concurrent" : "1503533"
 },
  "threads" : [
 {
    "is_managed" : false,
    "crashed" : true,
    "managed_thread_ptr" : "0x0",
    "native_thread_id" : "0x0",
    "thread_info_addr" : "0x0",
    "managed_exception_type" : "System.ArgumentOutOfRangeException"
  }
  ]
},
    "parameters" : 
{
        "ApplicationBundleId" : "com.microsoft.visual-studio",
        "ApplicationVersion" : "7.8.3.2",
        "ApplicationBitness" : "x64",
        "ApplicationName" : "Visual Studio",
        "BlameModuleName" : "Mono Exception",
        "BlameModuleVersion" : "5.16.0.238 (2018-06/99d74f7f6ee)",
        "BlameModuleOffset" : "0x0",
        "ExceptionType" : "0x02000000",
        "StackChecksum" : "0x0",
        "StackHash" : "0x0",
        "OSVersion" : "17.7.0",
        "LanguageID" : "0x7f",
        "SystemManufacturer" : "apple",
        "SystemModel" : "MacBookPro9,2",
        "EventType" : "AppleAppCrash"
    }
}

我还没有包含菜单项调用的子项,它们非常简单且与我的问题无关。

当我从此模板创建文档时,不会跨脚本复制。我对该平台的了解不足,无法理解为什么不是这种情况。是否需要独立脚本,库或Web应用程序?

0 个答案:

没有答案
相关问题