The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Faster ways to do Applescript loops? (http://forums.omnigroup.com/showthread.php?t=31315)

DrJJWMac 2014-02-17 10:06 AM

Faster ways to do Applescript loops?
 
I have two questions on this that I cannot seem to get right.

[CODE]
repeat with theTask in lstTasks
set the flagged of theTask to false
set the due date of theTask to missing value
set the start date of theTask to missing value
if the number of tasks of theTask is 0 then
set completed of theTask to false
end if
end repeat
[/CODE]

* What is the equivalent of a collapsed form ...

[CODE]set the value of {flagged, due date, start date} of theTask to {...}[/CODE]

* Does a faster way exist to avoid the loop, perhaps something such as

[CODE]set the value of {...} of every task in lstTask to {...}[/CODE]

The code runs. It just skips slowly through every task in a project list.


All times are GMT -8. The time now is 02:13 AM.

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