Last active
August 29, 2015 14:03
-
-
Save blanboom/a8e0cfad8fdd7b0490c7 to your computer and use it in GitHub Desktop.
OmniFocus 快速收集脚本 http://blanboom.org/omnifocus-quick-entry-applescript.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set isRunning to false | |
tell application "System Events" | |
if exists process "OmniFocus" then | |
set isRunning to true | |
end if | |
end tell | |
if isRunning is true then | |
tell application "System Events" | |
keystroke " " using {control down, option down} | |
-- 按下 Qiuck Entry 快捷键 | |
end tell | |
else | |
tell application "OmniFocus" to activate | |
tell application "OmniFocus" | |
set miniaturized of window 1 to true | |
end tell | |
tell application "System Events" | |
keystroke " " using {control down, option down} | |
-- 按下 Qiuck Entry 快捷键 | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment