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 > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
OO scripting failures Thread Tools Search this Thread Display Modes
I have a very simple OO script that does not seem to be working as advertised:

tell application "OmniOutliner Professional"
activate
tell front document
set note expanded of selected row to true
end tell
end tell

Instead of expanding the note of the selected row, I get an error saying:
"Cant set <<class OOne>> of <<class OOsr>> to true"

I thought thats what this command was *supposed* to do.
 
One needs to specify which member(s) of the rows collection.

e.g.

Code:
tell application "OmniOutliner Professional"
	activate
	tell front document
		set note expanded of selected row 1 to true
	end tell
end tell
or

Code:
tell application "OmniOutliner Professional"
	activate
	tell front document
		set note expanded of every selected row to true
	end tell
end tell

Last edited by RobTrew; 2008-03-24 at 09:33 AM..
 
of course, it may be more useful to have a script which toggles the selected rows back and forth between note expanded and note closed.

e.g.

Code:
tell application "OmniOutliner Professional"
	activate
	repeat with oRow in every selected row of front document
		tell oRow
			set note expanded to not (note expanded)
		end tell
	end repeat
end tell
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repeated Sync Failures hubmacfan OmniFocus Syncing 2 2011-12-06 12:05 PM
Synch Failures - OmniFocus server? rmonio OmniFocus Syncing 2 2011-11-19 07:52 PM
Scripting OG jem OmniGraffle General 0 2011-01-16 05:28 AM
Scripting Help Please! Skanger OmniFocus Extras 3 2008-10-30 09:42 AM
RC1: Basecamp/Campfire failures dnanian OmniWeb Bug Reports 2 2006-09-01 02:28 PM


All times are GMT -8. The time now is 11:15 AM.


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