Quote:
Originally Posted by byamabe
I found two non-optimal solutions which involve adding lines after "tell application":
1.
activate
Problem with this is that OmniFocus will always be brought to the front.
2.
launch
delay 1
|
Thanks for the suggestions. On my machine, (1) didn't change the behavior. I suspect OF does some things at first launch that render it incapable of properly handling the script. If I launch OF, quit it, and then run the original script, it works fine. Only on a "cold" launch does it crash. It's hard to believe caching could make the difference. I suspect it's some process (sync to the OF sync server?) that is different with the "cold" versus "warm" launch.
I was able to play around with a combination of "activate" and "delay" that seems to work better. Testing is a pain, cause you have to wait a while (or reboot) to recreate the "cold" launch.