Guest
2010-02-26, 03:52 AM
Quote:
Originally Posted by whpalmer4
One mouse click-drag + cmd-C or right-Copy to get the selection, cmd-tab to switch to OF, click the Add Action button, a click to select the row handle, cmd-V or right-Paste to paste. Not much effort for potentially hundreds of actions!
|
True, but one may be picking out a set of specific (and non-contiguous) paragraphs. (Typical of minutes where different actions are assigned to different colleagues).
I place my cursor anywhere in an MS Word para (usually without extending the selection) and hit a shortcut key to run the Applescript below.
It places the whole paragraph text in the OF Quick Entry panel, which pops up.
(If the MS Word selection is extended, it grabs the selected text, rather than the para containing the cursor).
The applescript is saved with a mnemonic name in the Word Script Menu Items folder, and I assign a keystroke (Ctrl O in my case) through:
System Preferences > Keyboard & Mouse > Keyboard Shortcuts > Application Keyboard Shortcuts > Microsoft Word.app
The Applescript text is:
Code:
tell application "Microsoft Word"
tell selection
if selection start is not selection end then
-- OK, selection already extended
else -- select para containing cursor
extend
extend
extend
end if
set strText to content of text object
set extend mode to false
end tell
end tell
tell application id "com.omnigroup.OmniFocus"
tell quick entry of default document
set oNewTask to make new inbox task with properties {name:strText}
select {oNewTask}
open
end tell
end tell
Last edited by RobTrew; 2010-03-05 at 01:24 AM..
Reason: Simplified code