The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Modifying project's note via applescript not updated in display: MVC bug? Thread Tools Search this Thread Display Modes
I filed a feedback this morning. here's the text - any comments or workarounds?

Hello, I've encountered a problem (perhaps an MVC problem) when manipulating the notes of a project using applescript.

How to reproduce the problem:

  • open OmniFocus so that the project you're going to modify is visible in the content pane. Select a project that doesn't contain anything in the note (there is a problem regardless, but I want to demonstrate the behavior of the Note indicator)
  • close the note in the project so the notes for the project are not visible
  • run a script like this:

-- obtain the project somehow, here called playProject
tell playProject to tell note to insert "let's add something new here" & return at before first character
  • run the script again, so we'll expect "let's add something..." to appear twice at the top of the notes.
  • Observe the Note indicator at the right of the content pane. It does not show that there are any notes.
  • Open the notes of the project. This first time only, you will see "let's add something..." at the top of the notes.
  • (optionally) Close the notes of the project. Run the script two or three more times.
  • open the notes again. We only see the first two added rows. Apparently the first time you open the notes, you'll see the new data, but that time only. The project's Notes indicator still shows that the notes are empty.
  • if you use AppleScript to inspect the note (i.e. using display dialog), you'll see that the update is occurring correctly on the model, but the view is not updating it as expected.

If you click on another folder so the project is no longer visible in the content pane, and then return, the entire view, including the Note indicator on the project, display correctly and as expected.

More comments:

  • When doing this to a task instead of a project, everything works fine.
  • The problem presents the same whether modifying the note of the project directly, or by first obtaining the root task of the project and modifying its note (I'm guessing that the project merely delegates the call to the root task)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
AppleScript Project's Resource Filtering MattHive AppleScripting Omni Apps 2 2010-04-20 10:13 PM
Need help modifying an applescript to auto-capitalize project names vinyl_warrior OmniFocus Extras 1 2009-07-29 01:16 PM
Problem modifying Display Preferences Mark Millard OmniPlan General 2 2008-02-05 02:10 PM
Feature Request: Sticky Note Display jstrat OmniFocus 1 for Mac 6 2007-07-23 11:57 PM
A note to the brave (AppleScript and Betas) Lizard OmniPlan General 0 2007-03-21 12:33 PM

All times are GMT -8. The time now is 09:22 AM.

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