applescript for changing pop-up listings?

Curt Clifton curt.clifton at mac.com
Tue Feb 7 17:44:54 PST 2006


James,

On Feb 7, 2006, at 7:41 PM, James Ackman wrote:


> Does anyone have an applescript solution for changing a pop-up  
> column listing for multiple row selections at the same time?  See  
> my inquiry to omnigroup support and their answer below.
>

Here's a script that I use for setting a column (pop-up or not) of a  
multiple row selection:

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