使用应用程序脚本获取活动文件查看器的列表 [英] Getting a list of active file viewers with apps script

查看:50
本文介绍了使用应用程序脚本获取活动文件查看器的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了一段时间,但是没有结果告诉我我不能,但是没有结果告诉我我可以.

I've been googling for a while but have come up with no results that tell me I can't, but no results telling me I can.

我正在寻找的是一种应用脚本(或他们的.NET/Java/Python ... API中的任何内容)中的一种方式,该方法可以向我提供在我询问时正在积极查看工作表的人员列表.我尝试了 getViewers ,但是它列出了所有列表有访问权限的人,而不是当前正在查看它的人.如果我想进行一些数据操作但又不想在文件中有人的时候进行操作,或者我想保存文件中人的用户电子邮件.看来这是分析的一部分,但我找不到能满足我需求的任何东西.

What I'm looking for is a way in apps script (or anything in their .NET/Java/Python...API) to give me a list of people who are actively looking at the sheet when I ask. I tried getViewers but it gives me a list of all people with access, not the ones looking at it currently. If I wanted to do some data manipulation but didn't want to do it when people where in the file, or if I wanted to save the user emails of people who were in the file. It seems like it's part of analytics but I can't find anything that does what I want.

我们有一个工作版本,该版本在打开魔术/按钮脚本触发器上做了一些工作,但这需要用户进行授权,并且希望改进流程并删除授权步骤.

We have a working version that does some on open magic/button script trigger but this requires the user to authorize and would like to improve the process and remove the authorization step.

有人知道一种方法来提取当前正在查看工作表/文档/幻灯片的人员列表吗?

Anyone know a way to pull the list of people who are currently viewing a sheet/doc/slide?

推荐答案

似乎Google Apps脚本尚不支持此功能.我一直在寻找此功能,但不幸的是也找不到任何相关的功能. (如果我错了或者错过了与此相关的事情,请有人纠正我.) 您是对的,您可以获取功能请求.

It seems that this is not yet supported in Google Apps Script. I've been searching for this feature but unfortunately can't also find anything related. (Someone please correct me if I'm wrong or missed something related to this.) You're right that you can get the list of viewers but not the ones currently looking. I guess you can file a feature request for this.

如果您想使用Apps脚本中缺少的功能,可以向我们的

If there is functionality missing from Apps Script that you would like to use, you can file a feature request on our Issue Tracker. Please describe the specific functionality you would like to see added, as well as reasons you think it's important. If possible, include specific details about your use case and the new opportunities the feature would allow for.

这篇关于使用应用程序脚本获取活动文件查看器的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆