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 Today's Posts

 
Deleting columns in Applescript Thread Tools Search this Thread Display Modes
I'm trying to write an Applescript to delete any selected column that contains no text (or other content). I want this because I often make the mistake of pasting text containing line medial tabs without using my paste lines literally script.

The problem is that I just can't get OmniOutliner to delete a column no matter what method I use.

I've tried "delete", "remove", remove each one separately by id, remove them all in one statement.

I've had the same problems trying to write an Applescript to delete all of the blank rows.
 
The following script will delete all of the selected columns.

Code:
tell application "OmniOutliner Professional"
	tell front document
		set theCols to every selected column
		repeat with theCol in theCols
			delete theCol
		end repeat
	end tell
end tell
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting projects Betsy OmniFocus for iPad 3 2010-10-10 06:09 AM
Confirmation on deleting Laucha OmniFocus 1 for Mac 1 2010-01-18 12:45 PM
AppleScript for deleting completed tasks and projects snarke OmniFocus Extras 8 2009-01-20 02:22 PM
Deleting a folder with nothing in it sbell22 OmniFocus 1 for Mac 2 2008-04-16 11:18 PM
Deleting Contexts mikulla OmniFocus 1 for Mac 5 2007-09-27 03:08 AM


All times are GMT -8. The time now is 04:38 AM.


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