Skip to content

Commit

Permalink
OmniFocus: add quick entry option
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotmoon committed Mar 22, 2024
1 parent 1c893eb commit dacc293
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Binary file modified extensions/OmniFocus.popclipextz
Binary file not shown.
9 changes: 8 additions & 1 deletion source/OmniFocus.popclipext/Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,12 @@
"popclipVersion": 4225,
"after": "show-status",
"description": "Create a new Inbox task in OmniFocus 4.",
"applescriptFile": "omnifocus.applescript"
"applescriptFile": "omnifocus.applescript",
"options": [
{
"type": "boolean",
"label": "Use Quick Entry panel",
"identifier": "quickentry"
}
]
}
13 changes: 10 additions & 3 deletions source/OmniFocus.popclipext/omnifocus.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ else
end if
set theNote to theSource & " on " & ((current date) as string) & return & return & "{popclip text}"
tell application id "com.omnigroup.OmniFocus4"
tell default document
make new inbox task with properties {name:first paragraph of "{popclip text}", note:theNote}
end tell
if "{popclip option quickentry}" = "1" then
tell quick entry
open
make new inbox task with properties {name:first paragraph of "{popclip text}", note:theNote}
end tell
else
tell default document
make new inbox task with properties {name:first paragraph of "{popclip text}", note:theNote}
end tell
end if
end tell

0 comments on commit dacc293

Please sign in to comment.