I can’t see any pattern, but on El Capitan, SU 2016 Pro, some of my Inputbox prompts are being cut short.
For example, if I put in:
prompts = [ "Qwert yui opghjklQwertyuiop", "Asdf ghjkl Asdf ghjklQwertyuiop", "Zxcvb nm Zxcvbnm", "QwertyuiopQwertyuiop"]
defaults = ["First", "Two", "Three", "Four"]
list = ["First|Second|Third|Fourth|Fifth", "", "", ""]
results = UI.inputbox(prompts, defaults, list, "Prompt string clipping")
what I get out is truncated - sometimes at the second space, sometimes later. This is the output from the above input.
Both the first and second prompt strings are cut short in this example. The third and fourth aren’t.
Try copying and pasting the above into your Ruby console, and see if you experience the same truncation.
I’ve tried variations of the number of characters between spaces, and where the spaces come, but can’t see any pattern to it.
Any ideas how to get round this? Or indeed, why it is happening in the first place?
I can’t find any other references to this issue using Google generally, or on this forum. Is there a word length limit?
Has it anything to do with the first input being a drop down list?