The need to automate Devonthink 2 Go

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.

I’d like to see the Mac Quick Action if you don’t mind. Thanks.

1 Like

Thanks much - I’ll give it a try

Could you paste the script as well please? I have a few ideas now I’ve seen that!

1 Like
on run {input, parameters}
	tell application id "DNtp"
		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
1 Like

Just tried it - works like a charm. Thanks!!
Looking forward to seeing Rosemary Orchard’s ideas

1 Like

A post was merged into an existing topic: Take Control of Shortcuts