blanboom
6/28/2014 - 12:31 PM

OmniFocus 快速收集脚本 http://blanboom.org/omnifocus-quick-entry-applescript.html

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