tell application id "DNtp"
set theRecord to get record with uuid "011858D7-BA67-49C3-922B-0EA749F94AAB"
set root of viewer window 1 to theRecord
end tell
yet when the uuid is a smart group it dosent appear to work. Anyone has any experience with this?
The root is always a record but global items in the sidebar are not records. However, opening the item link of global smart groups/rules might be an option.
now im confused but maybe im not explaining ti correctly
i have this AppleScript
tell application id "DNtp"
set theRecord to get record with uuid "92E76FE0-B6F7-4224-92F2-04721E92946A"
set root of viewer window 1 to theRecord
end tell
that does indeed move the view for better world to the group i want in the same window. Just to clarify that isn’t possible currently with a smart group, but rather only in a new window?
thx for the info. So to continue my series of question :)…
is it possible to link to a specific .md note and not a group? I tried using the precious merits with a uuid of a note which dosent seem to work
tell application id "DNtp"
set theRecord to get record with uuid "71E95E98-131D-45DB-AF2C-CF3FBFFDC1AB"
set root of viewer window 1 to theRecord
end tell
is it possible at all and need code adjustments or just not possible?
can you perhaps using alternative methods for this (such as a url callback?) to open a specific note?
since im only starting with dabbling with applescript, any examples of how to change the above script to do so or a good recommendation to where to learn such things?
Also: can you link to a specific note in iOS (for DTTG) via a url callback?
The folder ~/Library/Application Scripts/com.devon-technologies.think3 contains many example scripts, others can be found over here. And of course you could have a look at DEVONthink 3’s AppleScript support by dropping DEVONthink 3 onto the Script Editor.app icon in the Dock/Finder.