Is it possible to make the “Annotation” field available as part of DT items in iOS shortcuts (just as eg parents, JSON, tags etc are available)?
Many things are possible. ![]()
No promises but the request is noted.
I trust you’re able to do many things ![]()
It would be very helpful the locate the Annotation document of a regular DT item. I’ll keep my fingers crossed! ![]()
Hi! This still is interesting to me in my current workflow; having Annotation available either directly as a field in Shortcuts (or even through JSON) would be very helpful! Being able to set / update it would be best
Thanks for considering!
Hi there!
+1 for me ![]()
![]()
Best regards,
Tom van Kan
+1 for me as well. I would like to be able to read annotations from my files within an Apple shortcut action. @BLUEFROG any way this might be easier to accomplish with DEVONthink 4?
For what purpose? Present the use case so there’s something concrete to explore.
I collect zippo’s. Whenever I purchase one or identify one that I would like to purchase, I save the image to a zippo’s group in Devonthink. Ultimately this image gets inserted into a collections database entry: https://collectionsdb.com/
I have a shortcut that iterates over all of the images in my group and create an entry in collections. The shortcut integrates AI by passing the image to the AI and asks the AI to generate a json dictionary for inserting data into collections. Right now I have the shortcut prompt me to dictate additional details that the AI then determines what fields to populate in the collections database entry. A lot of of these details are already stored in my annotations, but I can’t get to them from the shortcut.
Here’s the shortcut, though you won’t be able to run it without the collections app and my zippo collection, but it should give you an idea of how it works and what I’m trying to do.
My goal would be to replace the dictated text in my ai prompt with the file’s comments from DEVONthink (and eliminate the dictation step completely)
https://www.icloud.com/shortcuts/572d8637bb1e4762a259ec6686fbbd85
Interesting use case.
It is already possible to access an Annotation file in Shortcuts. Here is a simple, though not error-trapped, one:
Ahh nice. Ok I was able to get this to work. The issue I was having is this:
I was using the filter files action in order to sort by name before my repeat loop. This action was casting the items from DEVONthink items (which do have the property) to files (which do not) so the shortcuts app wasn’t letting me select any of the properties that are usually available on a DEVONthink item. I first tried to resolve by casting my repeat item back to a DEVONthink item using the get item action, but since the file also lacks a uuid I couldn’t do this. Ultimately I caved and removed the sorting action which let me reference the repeat item as a DEVONthink item. Ideally the “find items” action could be updated to support sort parameters, which would enable me to add sorting back to this shortcut (so that it iterates the files in a predictable order), but either way I’m unblocked for now. Thanks a ton @BLUEFROG
You’re welcome.