Skip to content

Commit

Permalink
update omnifocus ext to of4
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotmoon committed Mar 22, 2024
1 parent 71fc838 commit 1c893eb
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 99 deletions.
Binary file modified extensions/OmniFocus.popclipextz
Binary file not shown.
15 changes: 15 additions & 0 deletions source/OmniFocus.popclipext/Config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"identifier": "com.pilotmoon.popclip.extension.omnifocus",
"name": "OmniFocus",
"icon": "omnitick.png",
"app": {
"link": "https://www.omnigroup.com/omnifocus/",
"name": "OmniFocus 4",
"bundleIdentifier": "com.omnigroup.OmniFocus4",
"checkInstalled": true
},
"popclipVersion": 4225,
"after": "show-status",
"description": "Create a new Inbox task in OmniFocus 4.",
"applescriptFile": "omnifocus.applescript"
}
41 changes: 0 additions & 41 deletions source/OmniFocus.popclipext/Config.plist

This file was deleted.

52 changes: 0 additions & 52 deletions source/OmniFocus.popclipext/OmniFocusAddInboxTask.applescript

This file was deleted.

10 changes: 4 additions & 6 deletions source/OmniFocus.popclipext/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
OmniFocus
=========
# OmniFocus

[OmniFocus] extension for PopClip
OmniFocus 4 extension for PopClip. Adds selected text as task in inbox, with reference to source URL, where available.

Credits
-------
First paragraph is the task title, and the rest of the text is added as a note.

Originally created by Marc Abramowitz - see [https://github.com/msabramo/nvALT.popclipext](https://github.com/msabramo/nvALT.popclipext). Icon and further modifications by Nick Moore.
Author: Nick Moore, based on previous extension by Mark Abramowitz.
11 changes: 11 additions & 0 deletions source/OmniFocus.popclipext/omnifocus.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if length of "{popclip browser url}" > 0 then
set theSource to "From web page: {popclip browser url}"
else
set theSource to "From application: {popclip app name}"
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
end tell

0 comments on commit 1c893eb

Please sign in to comment.