PDA

View Full Version : add flags to main pane actions?


Craig
2008-02-15, 08:01 AM
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:

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
and
tell application "OmniFocus"
-- select leaves of content of window 1
pbcopy leaves of content of window 1
end tell

Craig
2008-02-16, 05:27 AM
Just what I needed - thanks a bunch, RobTrew!