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