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

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

问题描述

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

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 Script 似乎尚不支持此功能.我一直在寻找这个功能,但不幸的是也找不到任何相关的东西.(如果我错了或遗漏了与此相关的内容,请有人纠正我.)您是对的,您可以获得 查看者列表 但不是当前正在查看的查看者.我想您可以为此提交功能请求.

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天全站免登陆