I am experimenting a little bit with task paper export from omnifocus and import of this export into tinderbox.
For this, I have created a simple agent to adapt the DisplayExpression containing only the characters of the task name before the first “@”. Doing this, it looks like Tinderbox has an issue with having DisplayExpression started with a “-” as first character.
Having the following agent running
var addPOS(2); addPOS=$Name.find("@"); $DisplayExpression=$Name.substr(0,addPOS)
is generating the following task list
-0
-0
-0
Changing it to
$DisplayExpression=$Name.substr(1,addPOS-1)
everything looks like expected, but missing the “-” as first character
Vertrieb
Verabredung ausmachen
Agile User Group
Because I am a little bit confused because of this behavior, it would be great to get some idea of the mistake I have done here.
Presuming $addPOS is a number-type attribute holding the .find() match position, we can move some calculation of the display expression which is generally a good thing: