The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Today's Posts

 
Editing the note of a folder Thread Tools Search this Thread Display Modes
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).

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
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Round trip local folder sync with Applescript and Folder Actions mf.studio OmniFocus Extras 0 2009-09-20 10:42 AM
Where is my database saved? [A: the OmniFocus folder inside App Support folder] Michael Blake OmniFocus 1 for Mac 2 2009-08-10 02:08 PM
Sync folder keeps reverting to default "Documents" folder chrisaceto iDisk/MobileMe/.Mac Syncing 1 2009-07-01 02:19 AM
Feature Request: Move project from folder to folder jbarr OmniFocus for iPhone 2 2008-07-17 11:10 AM
Help, I don't have a omnigraffle/stencil folder in my application support folder lebingert OmniGraffle Extras 1 2008-04-09 03:21 PM


All times are GMT -8. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.