根据 OmniFocus 内项目/任务状况自动给文件(夹)添加/设置标签(Tags)

OmniFocus Mac 版售价 258 RMB,内购还需额外的 258 RMB,这个价值 258 RMB 的内购,强就强在它支持 AppleScript,让我们可以很方便地用 OmniFocus 与其他的应用相互联系、相互作用。

最开始的时候,我对“在 OmniFocus 内使用 AppleScript”的理解,还停留在快速设置项目/任务的推迟日期、截止日期、持续时间等,比如我常用的:

  • 推迟到周末;
  • 推迟到下周;
  • 今天内完成;
  • ……

后来在少数派上看到这么一篇文章:

《装了啥丨喜欢效率工具的法官 JannerChang,用 GTD 来处理案件判决》

继续阅读

设置 VPN 自启动及断线自动连接

两年前的东西了,要不是现在 GFW 这么牛逼估计一辈子都用不到。

新建 AppleScript,贴入代码:

on idle
    tell application "System Events"
        tell current location of network preferences
            set myConnection to the service "YOUR VPN NAME"
            if myConnection is not null then
                if current configuration of myConnection is not connected then
                    connect myConnection
                end if
            end if
        end tell
        return TIME
    end tell
end idle

继续阅读