An add to the Macsparky OmniFocus Hazel Rule
This post at Macsparky is great from a workflow standpoint to make sure the bill gets paid. I've tweaked to add the id of the file from Yojimbo so I can call up the bill.? You can spotlight search the id and get to the bill. I'm sure a link to the file could be set up this way but I don't have it yet.
The script adapted from Macsparky.com post:?
set theDate to current date
set theTask to "Pay Bill"
tell application "Yojimbo"
set theLink to id of last pdf archive item of the library
end tell
set theNote to "Scanned or downloaded on " & (theDate as string) & " " & theLink
tell application "OmniFocus"
tell front document
set theContext to first flattened context where its name = "Home"
set theProject to first flattened project where its name = "Bills"
tell theProject to make new task with properties {name:theTask, note:theNote, context:theContext}
end tell
end tell
?