Love Hook has a tag attach to files.
Could the tag be configurable so it it could fit into a Omnifocus and macOS tag structure?
Love Hook has a tag attach to files.
Could the tag be configurable so it it could fit into a Omnifocus and macOS tag structure?
Hook’s Link to New
OmniFocus integration script could be updated to add whatever tag one wanted to use. Someone on Hook’s forum added that for Things. Doing something more general on our side has been on our minds and in our docs. Making the Hook tag configurable also makes sense to us.
I’d really love to see that - definitely also for Omnifocus. I have a - some would say complicated - tag organisation that is mirror of my macOS tag’s for reference library.
Here’s a script for Hook to New
that adds a “Hook” tag to OmniFocus if OmniFocus does not yet have it, and the script adds the tag to the new task. You could rename the tag to something else.
If you want to try the script:
Link to New
tabIf you want to revert to the built in script, just select the OmniFocus button on bottom left and click the “-” button. See also Scripts Tab – Hook.
caveat emptor. I’m not one of our script authors and they have not vetted this. Works in my limited tests on OmniFocus3 from OmniGroup store, which I use. Not extensively tested. Only designed for Link to New
, not for adding and removing links. We should provide one of them too. Also, of course, this is just another small step towards tagging in Hook.
tell application "OmniFocus"
activate
tell first document
-- remove extraneous text from URL
set AppleScript's text item delimiters to {"$$$"}
set srcURL to text item 1 of "$link"
-- Create a new task and note
set myTask to make new inbox task with properties {name:"$title", note:"$title"}
try
set taskTag to (first flattened tag where its name is "Hook")
on error
set taskTag to make new tag with properties {name:"Hook"}
end try
add taskTag to tags of myTask
-- hyperlink-ify the note
set value of attribute named "link" of style of paragraph 1 of note of myTask to srcURL
set taskID to "omnifocus:///task/" & (id of myTask)
-- open task
GetURL taskID
-- return URL of task for Hook to link with source item
get taskID
end tell
end tell
Many thank’s Luc,
I will work and test this.
-mic
Now that there is a settings panel for tags for certain applications (Finder, goodlinks, pinboard), it seems that it would make sense to allow tagging for more commonly used applications in the productivity sphere when items are hooked.
I specifically use OmniFocus and DEVONthink. I would greatly appreciate being able to apply a tag (preferably customizable) to any item that has been hooked.
Yes, I appreciate that there is an icon on the menu bar that provides a visual indicator of hooked content, but having a tag embedded into the content itself makes searching, filtering, etc more accessible.
Welcome to Hookmark, @atdnorth .
Do you mean you would like to apply “from:Hookmark” to linked OmniFocus and Devonthink items?
Thank you
Yes, precisely.
In an ideal world, these tags could be customizable. So instead of “From:hookmark” it could be “hooked” or whatever the user decides per application.
Thank you, @atdnorth .
How do you link an item to OmniFocus and DEVONthink, via “Hook to New..”?
That approach assumes that one hooks from a pre-existing document (such as an email) to a new OmniFocus task.
My workflow most often involves hooking two existing documents (e.g. an OmniFocus task and a DEVONthink group or document).
In addition, even if one were to go with the approach of creating a new OmniFocus task, being able to add this “From:hook” tag automatically (in addition to whatever other tags the action / document need based on its underlying content) reduces the friction of using hookmark as a unifier of content. Also, needing to tag “From:hook” with each “hooking” requires one to remember to perform this manual step and reduces the trust one has in their system.
Thank you, @atdnorth .
We will have a look.