From bd774797df51b2921d662e176ae5bdca80f9f386 Mon Sep 17 00:00:00 2001 From: Brandon Pittman Date: Sat, 21 Nov 2015 22:33:06 +0900 Subject: [PATCH] Update Templates.applescript Open new document window if one doesn't exist --- Templates.applescript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Templates.applescript b/Templates.applescript index 9a99762..9edcb30 100644 --- a/Templates.applescript +++ b/Templates.applescript @@ -63,7 +63,14 @@ property specialTemplateFolder : null -- If not the first time run the script then set the status of template folder to Active. try - tell application "OmniFocus" to activate + tell application "OmniFocus" + tell default document + if visible of front document window is false then + make new document window at end of document windows + end if + end tell + activate + end tell if firstRun = false then tell application "OmniFocus" tell default document