The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   add flags to main pane actions? (http://forums.omnigroup.com/showthread.php?t=7173)

Craig 2008-02-15 08:01 AM

add flags to main pane actions?
 
Newbie questions:

1) How would I script setting flagged status to all of the visible actions in a given (content-view) perspective?

2) How would I select all visible actions and copy to clipboard?

RobTrew 2008-02-16 05:19 AM

You could begin by experimenting with code like:

[CODE]tell application "OmniFocus"
repeat with oLeaf in leaves of content of window 1
set oTask to value of oLeaf
try
set flagged of oTask to true
end try
end repeat
end tell[/CODE]
and
[CODE]tell application "OmniFocus"
-- select leaves of content of window 1
pbcopy leaves of content of window 1
end tell[/CODE]

Craig 2008-02-16 05:27 AM

Just what I needed - thanks a bunch, RobTrew!


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

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