【问题标题】:OS X Outlook calculate message composition timeOS X Outlook 计算邮件撰写时间
【发布时间】:2013-09-15 20:09:30
【问题描述】:

我在 Mac OS X 上使用 Outlook 2011,我正在尝试找到一种方法来计算撰写邮件所需的时间。

谢谢!

【问题讨论】:

  • 这个问题似乎离题了,因为它是关于使用 Mac 应用程序的,应该迁移到 apple.stackexchange.com
  • 您对此有何要求?程序是否需要自动知道何时创建新消息,或者您可以在开始时手动启动脚本?时间需要有多准确?分、秒、毫秒?您希望如何收到通知?是否需要记录,还是一个对话框就足够了?
  • 我正在尝试创建时间跟踪应用程序。这是为了帮助用户自动跟踪他们回复电子邮件所花费的时间。我想得到“消息”、“主题”和撰写消息所需的时间。精度最高可达 5 分钟,但最好是 1 分钟。
  • (对不起,这是我在这里的第一个问题,我只是快速回车)。通知可以是简单的txt日志。从我目前所做的研究来看,AppleScript 是唯一的选择,并且必须手动触发才能捕获开始时间?我对么?我愿意接受任何建议,再次感谢!
  • 你试过什么?还是您希望有人为您完成这项工作?

标签: macos outlook applescript


【解决方案1】:

如果您只需要知道分钟数(而不是秒数),您可以使用Atea。这是一个超级简单的时间跟踪器,位于您的菜单栏中。

如果您需要精确到秒的时间,这是一个有点丑陋但有效的 Applescript 一次性时间跟踪器:

property logfile : "Path:To:log.txt"

set startTime to current date

--Don't let the dialog timeout. Give it an entire day to finish
with timeout of 86400 seconds
    display dialog "Click 'Finished' when your email is complete." buttons {"Finished"} default button "Finished"
end timeout

set elapsedTime to (current date) - startTime

--Opening and immediately closing the file just makes sure
--the file will exist when you try to write to it.
open for access file logfile with write permission
close access file logfile
write ((elapsedTime as string) & return) to file logfile starting at eof

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-13
    • 1970-01-01
    • 2012-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-23
    相关资源
    最近更新 更多