Question about mGTD columns

Tags ( )

I am trying to edit ronaldlamars' iCal script
http://apokalypsesoftware.com/products/node/2261
to read the "Date Due" column in the mGTD plugin
(as opposed to the "Due Date" column under normal
Mori usage).
Can anyone advise as to the proper syntax or
column name? I know very little about scripting,
and nothing I have tried has worked... Cheers.

If I change the "tell Mori"

If I change the "tell Mori" section to"

tell application "Mori"
tell current entry
set theDate to (get attribute name "dateDue")
set theName to name
set theNote to note
end tell
end tell

then it seems to work for me. (but I am still running Mori 1.6, so I can't be sure that things haven't changed at all)

Best,
Jeff

Kind of works...

Hi Jeff,

Thanks for the reply. That script works (it sends the Mori entries to the correct date in iCal), but the iCal entries don't show up unless I restart iCal. Any ideas? Thanks again!

Works for me...especially after I correct for a subtle iCal bug

I was reluctant to answer your post because I hadn't experimented with the plugin and I'm still a GTD noob.

However, I've posted about that, and the means by which I've come up with the following solution.

tell application "Mori"
  tell current entry
      set theDate to (get attribute name "dateDue")
      set theName to name
      set theNote to note
    end tell
end tell
tell application "iCal"
  tell calendar "Scramble" -- the user should specify the name of the target calendar here
    set theEvent to make new event at end with properties {description:theNote, ¬
      summary:theName, start date:theDate, end date:(theDate + 1), allday event:true}
    tell theEvent to make new display alarm at end with properties {trigger date:theDate}
  end tell
end tell

Thanks!

Alfonso: Many thanks for the script and for the interesting insight into your process for coming up with it! You certainly went above and beyond for this fix! Cheers!

It looks like iCal only

It looks like iCal only loads those data at startup, and isn't aware of any changes.
You could have the script quit iCal, and restart when it's done.

Thanks!

Thanks - I appreciate the feedback!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.