Skip to content

Instantly share code, notes, and snippets.

@blanboom
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blanboom/a8e0cfad8fdd7b0490c7 to your computer and use it in GitHub Desktop.
Save blanboom/a8e0cfad8fdd7b0490c7 to your computer and use it in GitHub Desktop.
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