On the Mac, I created a Service (now dba a Quick Action) that allows me to right-click on any file, select the service/Quick Action, and it pulls up the DTP Group Selector -> Imports the file into DTP Group -> Copies the item Link URL to the clipboard. I then usually paste into a calendar entry or an Omnifocus task. (I am happy to share it if anyone wishes)
I would like to select any file on iOs / iPadOS to pull up a share sheet shortcut to essentially do the same thing. I would probably have it paste right into a note of a new Omnifocus task.
I brought this up on the DevonTECH discourse:
Has anyone else cracked this nut? I see @RosemaryOrchard was doing some of this on her blog, but her angle may be a bit different than mine.
on run {input, parameters}
tell application id "DNtp"
launch
set theGroup to display group selector
end tell
set thePath to input as text
if thePath does not end with ".download:" and thePath does not end with ".crdownload:" then
tell application id "DNtp"
set theRecord to import thePath to theGroup
set itemLink to reference URL of theRecord
tell application "Finder"
set the clipboard to itemLink
end tell
end tell
end if
end run