The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Defer (or 'snooze') tasks/projects (http://forums.omnigroup.com/showthread.php?t=7057)

dbyler 2011-07-13 04:06 PM

Henri—interesting thought. I'd be a little hesitant to push back a project when one of its mere tasks is selected, but I definitely see why you'd want to do that. Let me think about that a little more...

whpalmer4 2011-07-13 04:47 PM

It's a bit tricky because while you can set the due date on an action, OmniFocus will treat it as having the most restrictive due date of any ancestor, leading to situations like this:

[URL=http://imageshack.us/photo/my-images/824/screenshot20110713at531.png/][IMG]http://img824.imageshack.us/img824/5865/screenshot20110713at531.png[/IMG][/URL]

(obviously, this is an action from a project which is due today). If you query OmniFocus with Applescript for a task's due date, it appears you do not get the effective due date (today, in my example).

Maybe the safe thing to do is to at least warn the user that the deferred date isn't actually the effective date? Unfortunately, I think you have to walk up the container chain to do that.

dbyler 2011-07-14 03:31 PM

Okay, [URL="https://github.com/dbyler/omnifocus-scripts/blob/fee946a10d6c64401a9901d371348c591269671c/Defer.scpt"]here's[/URL] a new version that checks for discrepancies between actual and effective Start and Due dates and warns you if there's a mismatch. (You can turn off the warning if you want.)

It also lets you skip the second dialog box if you always change the same parameters (Due only or Start and Due).

I opted not to change the ancestors because that seemed like it would introduce too much uncertainty into the workflow. A warning seemed like a better middle ground. (I'd have loved to make the Growl notifications clickable to open the project in question, but you can't do that with AppleScript.)

Let me know what you think of this change.

vfatia 2011-08-01 02:43 PM

Error with Fullscreen in Lion
 
Hello,

When running the latest sneaky peek in Lion there is the possibility of running the app in fullscreen.

If I run the script I get the error "Can’t get document window 1 of document 1 whose index = 1. Invalid index". I have already addressed the ninjas but they said fullscreen didn't allow getting windows and they were also looking for a workaround… :(


Any ideas?!

RobTrew 2011-08-01 02:57 PM

[QUOTE=vfatia;100166]Hello,

When running the latest sneaky peek in Lion there is the possibility of running the app in fullscreen.

If I run the script I get the error "Can’t get document window 1 of document 1 whose index = 1. Invalid index". I have already addressed the ninjas but they said fullscreen didn't allow getting windows and they were also looking for a workaround… :(


Any ideas?![/QUOTE]

OS upgrades usually do break at least a few scripts.

If one's work-flows depend on scripts to any significant extent, it's usually better to delay upgrading the OS, let the early adopters discover the problems, and give the developers some time to develop solutions.

I personally won't go anywhere near Lion before the new year ... and even then only once compelling disadvantages in sticking with Snow Leopard are clearly present - right now it's not very easy to see any ...

vfatia 2011-08-02 09:42 AM

[QUOTE=RobTrew;100167]OS upgrades usually do break at least a few scripts.

If one's work-flows depend on scripts to any significant extent, it's usually better to delay upgrading the OS, let the early adopters discover the problems, and give the developers some time to develop solutions.

I personally won't go anywhere near Lion before the new year ... and even then only once compelling disadvantages in sticking with Snow Leopard are clearly present - right now it's not very easy to see any ...[/QUOTE]

I do agree, but trying the new shining thing as a certain appeal. This isn't a deal breaker, if it was time machine to the rescue! ;)

RobTrew 2011-08-08 05:23 AM

I don't have a copy of Lion to hand, but just in case the problem is specific to the [I]document window 1 of document 1 whose index = 1[/I] idiom, it might be worth testing [URL="http://bit.ly/OFStartDue"]this similar script[/URL], which bypasses the index query.

dbyler 2011-08-29 05:26 PM

vfatia, just saw your post... it's working fine for me when running OmniFocus (1.9.3 sneaky peek v77.75.10 r154699) in Lion (10.7.1) in full-screen mode, activating the script using Fastscripts.

Is it still broken for you?


All times are GMT -8. The time now is 02:26 PM.

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