I'm working on an AppleScript script and I want to be able to retrieve Mori entries by ID (in case there is more than one entry with the same name, which would cause trouble using entry named "name"). Is there any way to do this other than searching every entry to find it?
Also, I'm trying to set the checkbox state of an entry by set (entry named aTodosName)'s checkbox to on state inside a Mori tell block but this always gives me the error: "Mori got an error: Can't make checkbox of entry "check mail" into type reference." ("check mail" is just the name of the entry being tried). Any thoughts on why this is; I've never had trouble with checkboxes before (other than when the name changed in 1.2).
When mGTD still just an
When mGTD still just an Applescript (a very long one at that,) I used:
set thisEntry to entry id eachID
(where eachID is an integer, and "entry" and "id" are resevered words for Mori)
to avoid problems with duplicate names.
I don't think I can help you with the other. One thing to check is that all method blocks have a "using terms from application "Mori"" block in them. I think that used to give me reference errors.