It may not be immediately apparent that Folders have notes, but in fact they do.
Has anyone found a way of of viewing or editing them through the GUI ?
I haven't spotted one yet ...
(In the meanwhile here is a simple script).
(Why attach notes to folders ? Well, I keep my project-related documents in more than one DevonThink database, and I am placing the paths of the relevant DT databases in the note fields of the enclosing OF folders, so that other scripts know which database to reach for, or place things in).
Has anyone found a way of of viewing or editing them through the GUI ?
I haven't spotted one yet ...
(In the meanwhile here is a simple script).
(Why attach notes to folders ? Well, I keep my project-related documents in more than one DevonThink database, and I am placing the paths of the relevant DT databases in the note fields of the enclosing OF folders, so that other scripts know which database to reach for, or place things in).
Code:
property pTitle : "Edit folder note(s)" tell application id "OFOC" tell front document window of front document -- GET ANY SELECTED FOLDERS repeat with oPanel in {sidebar, content} set refFolders to (a reference to (selected trees of oPanel where class of its value is folder)) set lngFolders to count of refFolders if lngFolders > 0 then exit repeat end repeat if lngFolders < 1 then return -- USE THE TEXT OF THE FIRST FOLDER WITH AN EXISTING NOTE AS THE DEFAULT, repeat with oNote in (note of value of refFolders) as list if oNote ≠ "" then exit repeat end repeat -- AND ALLOW THE USER TO EDIT THE TEXT. tell (display dialog "Note for all selected folders:" default answer oNote with title pTitle) to set strNote to text returned -- SET THE NOTES OF *ALL* THE SELECTED FOLDERS TO THE NEW TEXT if strNote ≠ "" then set note of value of refFolders to strNote end tell end tell