OS X Outlook计算邮件撰写时间

时间:2013-09-11 17:12:21

标签: macos outlook applescript

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

谢谢!

1 个答案:

答案 0 :(得分:0)

如果您只需要知道分钟数(而不是秒数),则可以使用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