Skip to content

Commit

Permalink
Update Templates.applescript
Browse files Browse the repository at this point in the history
Open new document window if one doesn't exist
  • Loading branch information
Brandon Pittman committed Nov 21, 2015
1 parent 5ab1f0a commit bd77479
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Templates.applescript
Expand Up @@ -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
Expand Down

0 comments on commit bd77479

Please sign in to comment.