I am afraid I must have explained the problem poorly Andy. I'll try again.
In the picture above, the list under "stkLines", I put those numbers in manually, only the text is in the custom property, which I'll post here -
Code: Select all
[ Home Folder ]
[ Path to resFolder ]
[ Is image Magick installed ]
[ Path to exe ]
[ Path to icon ]
[ Path to converted icon ]
The code I used to put it into the field is really direct, simply
Code: Select all
put the cpropTemplate of stack "stkLines" into field 1 of card 1 of stack "stkLines"
*Edit, I just found out that executing this same line of code directly from the message box results in the field having the correct number of lines. Hmmm.
The code you see in the message box was just to see if I had extra lines in there somehow, and if that was causing the extra line in the field. The only place that code exists was in the message box.
Hopefully, that makes the question clearer, when I copy / paste the custom property contents, it comes out with the correct amount of lines, no issue.
The problem I'm trying to understand is why putting that same text directly into a field causes the text in line 13 to jump to line 14 of the field? And it is always that line, too, no other.
I thought I had originally inserted an extra cr or lf somehow, so I took all that data out and manually put it back in line by line, and I still get this same result. It is a curious issue to me, that is all.
*Edit - The code I used has only 1 other statement in front of it, which puts the cprop of the stack it is running from into a field as well. I wonder if that line is somehow affecting this one, though I can't see how. This is the handler up to the line in question -
Code: Select all
on openStack
set the toolTipDelay to 10
// set the defaultFolder to the home folder
// put the template into field 1...
put the cpropTemplate of this stack into field 1 of this stack // stack this handler runs from
put the cpropTemplate of stack "stkLines" into field 1 of card 1 of stack "stkLines" // second stack
*Edit 2 - I did also previously make sure that all lines terminated with LF, just in case -

- LF all the way baby...