select multiple items for a pop-up list

Curt Clifton curt.clifton at mac.com
Mon Jul 3 15:16:49 PDT 2006


On Jul 3, 2006, at 5:48 PM, John Laudun wrote:

> Okay, that isn't a very good description of what I want: to be able  
> to select a number of items in an outline and assign them one value  
> from a pop-up list. My particular context: I've just entered a  
> number of items in my kGTD list and I want to mark them all as  
> having the same context, let's say "Read." It strikes me as very un- 
> Omni not to have a way to do this (usually some uber-cool trick  
> using the Option key).

Attached is a script that I use to do a similar thing.  As written it  
works for any column and allows arbitrary values.  It could be  
customized to work for a specific column and a specific set values  
without much trouble.

Cheers,

Curt


-- The script
tell front document of application "OmniOutliner Professional"
	-- Get column to edit
	set theColumnNames to name of every column
	set theChoice to choose from list theColumnNames with title "Column  
Selector" with prompt "Choose the column whose value should be changed"
	if (theChoice is false) then return
	set theChoice to (item 1 of theChoice)
	set theReply to display dialog "Enter the new value for cell " &  
theChoice default answer "" with title "Value Entry"
	set theValue to (text returned of theReply)
	set value of cell theChoice of selected rows to theValue
end tell


Cheers,

Curt




More information about the OmniOutliner-Users mailing list