我知道这是一个很遥远的事情,但是,您知道是否可以将脚本附加到您在脚本中创建的电子表格中?
伪代码版本是
function create_spreadsheet
new spreadsheet = ... creates spreadsheet
new spreadsheet = ... fills with appropriate formatting
-Need help part is -
new spreadsheet add script = ... Attach Following script to the new spreadsheet.
-Need help part is -
您可以使用 Apps 脚本 REST API(也称为“高级 API”)以编程方式管理 Apps 脚本项目。看https://developers.google.com/apps-script/api/how-tos/manage-projects https://developers.google.com/apps-script/api/how-tos/manage-projects这包括创建“绑定”项目(即绑定到特定工作表)并将新内容上传到该项目文件的能力。
但是,要从 AppsScript 代码使用 REST API,您需要启用“高级 API”。看https://developers.google.com/apps-script/guides/services/advanced https://developers.google.com/apps-script/guides/services/advanced.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)