Just curious if it's possible to access the line enders when pasting text into a text box of a pop-up script control?
It looks like they are there when pasted, but so far haven't been able to access them. They don't seem to exist during string processing.
So far, I have the script use a text box for short text, and open an external file and read lines for long text with line breaks. If possible, it would be nice to paste into a field and use that text to read line by line.
I've tried searching and looping on line enders in the field text as the line enders are there when pasted. It just seems the line enders aren't "real" if you know what I mean.
Can you access line enders in text pasted into fields in script pop ups?
Moderators: Víctor Paredes, Belgarath, slowtiger
Re: Can you access line enders in text pasted into fields in script pop ups?
You would probably need to pre-end the Line End with some other highly likely to be unused character (like below), then recover the breaks from those ‡ chars. I had to do a similar substitution with Quote chars once.
123 ‡
456 ‡
789 ‡
Whilst we are here ... It would actually be nice to have an actual multi-line Text Box control.
123 ‡
456 ‡
789 ‡
Whilst we are here ... It would actually be nice to have an actual multi-line Text Box control.
Moho 14.4 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.4 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam
Sam
Moho 14.4 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam
Sam
Re: Can you access line enders in text pasted into fields in script pop ups?
Yes, I thought of using a character for line enders. I may add that as a checkbox option with a text field for the character used.
And yes, would be nice to have a multiline text box. For now using the external files for long chunks of text works fine to get line enders.
It's not a huge deal breaker for this script and was an afterthought that might save time.
p.s. I've completely updated and improved my "ancient" "Simple Text" script for fast creation of very low point count very simple single stroke vector text.
I had to redraw most of the characters but it looks and works much better. I got a wee bit carried away and added adjustable letter spacing and kern pairs so the text looks AMAZING.
And yes, would be nice to have a multiline text box. For now using the external files for long chunks of text works fine to get line enders.
It's not a huge deal breaker for this script and was an afterthought that might save time.
p.s. I've completely updated and improved my "ancient" "Simple Text" script for fast creation of very low point count very simple single stroke vector text.
I had to redraw most of the characters but it looks and works much better. I got a wee bit carried away and added adjustable letter spacing and kern pairs so the text looks AMAZING.