Skip to content

Instantly share code, notes, and snippets.

@pilotmoon
Last active April 28, 2024 22:46
Show Gist options
  • Save pilotmoon/fa2365832340b351be48976112b03c05 to your computer and use it in GitHub Desktop.
Save pilotmoon/fa2365832340b351be48976112b03c05 to your computer and use it in GitHub Desktop.
blah
-- #popclip
-- name: OF4
-- after: show-status
-- lang: applescript
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

!!!!!!!!!!!!!

@pilotmoon
Copy link
Author

(The above block is an extension snippet — select it then click "Install Extension" in PopClip.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment