The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   Script to convert OmniOutliner row to OmniFocus Action (http://forums.omnigroup.com/showthread.php?t=21070)

JohnJ80 2011-05-13 07:38 PM

Script to convert OmniOutliner row to OmniFocus Action
 
Because the Clip-o-tron is whacked in Omnifocus (puts the name of the file in the action), I wrote this applescript to take a list of selected rows in OO and convert each one to an action in OmniFocus's quick entry window.

I've not tested it much, but maybe it's a help to others and a starting place for more scripting on this.


[CODE]
tell front document of application "OmniOutliner Professional"
-- set theDoc to front document
--set columnCount to count of columns of theDoc

set theList to the selected rows
set theCount to (count of selected rows)
if theCount < 1 then
display dialog "You need to select at least one row to use this script." buttons "Cancel" default button "Cancel"
end if

-- go through each selected row in OmniOutliner and then create a corresponding
-- action in the quick entry box of OF

set actionText to ""
repeat with i from 1 to theCount


set actionText to (get topic of item i of selected rows)

-- create a new action in Omnifocus QuickEntry window

tell application "OmniFocus"
-- create new action
tell quick entry
open
set NewTask to make new inbox task with properties {name:actionText}
end tell
end tell
end repeat
end tell
[/CODE]


All times are GMT -8. The time now is 11:32 PM.

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