From 361304d0c545aa5e8b802c64ea169d17c8608da4 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Mon, 6 May 2019 16:23:35 +0100 Subject: [PATCH] Make some selections compatible with OmniFocus 3 --- Append Note to Selected Task.applescript | 2 +- Clear Dates.applescript | 2 +- Shift.applescript | 2 +- Snooze.applescript | 2 +- This Weekend.applescript | 2 +- Today.applescript | 2 +- Toggle Sequential.applescript | Bin 1105 -> 2204 bytes Tomorrow.applescript | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Append Note to Selected Task.applescript b/Append Note to Selected Task.applescript index efa7be6..1f13353 100644 --- a/Append Note to Selected Task.applescript +++ b/Append Note to Selected Task.applescript @@ -48,7 +48,7 @@ on main(q) tell application "OmniFocus" tell content of first document window of front document --Get selection - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/Clear Dates.applescript b/Clear Dates.applescript index f693d00..277a2af 100644 --- a/Clear Dates.applescript +++ b/Clear Dates.applescript @@ -73,7 +73,7 @@ on main() tell application "OmniFocus" tell content of first document window of front document --Get selection - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/Shift.applescript b/Shift.applescript index 7354197..c76dfce 100644 --- a/Shift.applescript +++ b/Shift.applescript @@ -110,7 +110,7 @@ on main(q) tell application "OmniFocus" tell content of first document window of front document --Get selection - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/Snooze.applescript b/Snooze.applescript index cea8408..a4ca23f 100644 --- a/Snooze.applescript +++ b/Snooze.applescript @@ -85,7 +85,7 @@ on main(q) tell application "OmniFocus" tell content of first document window of front document --Get selection - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/This Weekend.applescript b/This Weekend.applescript index 3a63275..a532995 100644 --- a/This Weekend.applescript +++ b/This Weekend.applescript @@ -81,7 +81,7 @@ on main() tell application "OmniFocus" tell content of first document window of front document --Get selection - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/Today.applescript b/Today.applescript index 6c208db..fc55f52 100644 --- a/Today.applescript +++ b/Today.applescript @@ -101,7 +101,7 @@ on main() tell content of first document window of front document --Get selection set totalMinutes to 0 - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error" diff --git a/Toggle Sequential.applescript b/Toggle Sequential.applescript index ffe2eec6f5b02155e2b657dd5b2138fb0b26abf5..c14af140e2d09d860d3ba3e742137e4eb9d14981 100644 GIT binary patch literal 2204 zcmbuAOH&h35QTdie#I@>1WJ-%sR(Y=fIt<31=+X^Aur9#WI~D`ulSvAhDj6`Kuu-l z-tNAqPrq(%f0u33)~safmTcb+?854HZpZf38obZ!6#2Sa$f{vu>+%e&Z8J0r>#@rG zJ!K!Ogs$y2EhKHbLeuxv&{sMsi=Q^YR@qz z$o8zt(?vH!R`Hc0o`X;Uag66GYjMw6O;$Knv3h5(>@DA2_{rxL-(6O1PS#kx_EqUV z=XrHbs7IX&ol>I%c&RGV)$u#A8;_^!Y?J-EO?au^*Uxdt4*%)V1obs8U9pFFoSW zsLRx|(FX~w*u)v-NGo+&kCncaJ5N!Ib)3 z9na|&6+I@4!p^5+3Li~^`nK&=-*m6?DXs&agm%Icc~T6~!O33Wd+3OtiKRs}Gi2(V z;;gEw=wcc*haC_*U}zQ;wPs9bhxazhLv;B9eSTtkhxG3Wc`SJZ!qXIr>lN8qy(^BL z#}G?(PI!-bk2AV6a(`vVQ*MfzCWEu4skooCPgo2*gOUeZimm=Wfn32V@SH-5Kh zNh<@+L!-Ph22BE+O4(ll$ibCYHg^{8HBqfB6pY)u*27P=Qz7%Zp~+SS?zuxBw6k-l zh?+2;PD>pqDK%B?HpyH)-43mqq0=<`c=jQ?EHKZDOT_K$@;z>ucYH>$N*Bx9^^&DX zv2e}a>#`#F3um*_^9jE$;F`%??F}m%XU>w!Xb$-{ZhS6lrA@r@Sc;X-&_;T#%^CYW z-N0cB#*rxV?7A*-4Wn3AhKcj#)C^T&T5Fmd7D-bz+;F^EeY$>_gLTj;&yr~W4su>p zijX~s?(m5v=vX>Cop2GW7{TJ^%k8%%+@$Nx-NTPQq+ZVKd~$jr#YCi5_fdF`i7l1# z!4oKA9@4T@X$3p(|U(&v(U^pbM0Wo|HU20xu3<~!GcF>z2&-t9jYZ4)DEKog)$t0 z5FQ&;hcKzqA-V+GzF-{}L=w;ctAg)(EDJ;1{`Ls%LwEtq9LTqkg1~{wTkuE90@;3D XaAo`$1n?pT{#@bEJwoCT$)}Hh3*d2V diff --git a/Tomorrow.applescript b/Tomorrow.applescript index 5b026c3..4a47fe2 100644 --- a/Tomorrow.applescript +++ b/Tomorrow.applescript @@ -95,7 +95,7 @@ on main() tell content of first document window of front document --Get selection set totalMinutes to 0 - set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not context and class of its value is not perspective) + set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective) set totalItems to count of validSelectedItemsList if totalItems is 0 then set alertName to "Error"