Peter, create a Feature Request and ask Xojo to convert the array to text separated with 0A as the working solutions do.
Alas, I donât submit FRâs or bug reports anymore because (almost) invariably my reports donât get enough âvotesâ, so languish for years and never get fixed (another conversation entirely). Iâm hoping Xojo folks read the forum, and if they see this and feel itâs important, theyâll fix it.
Too bad you donât open tickets anymore.
I donât think Xojo will change anything as Apple Pages works the same (without a feature request).
Youâre occulting the fact that Pages (and a few others) also donât handle it.
And, most products you describe have already been coded; Xojo is just a programming language and itâs up to you to handle the tool as necessary.
(of course, I recognise that as long as you think Xojo is the culprit, you wonât think it matters to try the code in other ways, but you have to be sure your code is correct before thinking itâs Xojoâs fault).
Xojo canât do much if we donât write code
.
It does.
The Finder stores at least 2 flavours in the clipboard, as have already been determined:
1: an utf8 string that stores only the first selected item; itâs what Clipboard.Text retrieves.
2: another flavour, yet to be determined and handled in your code, containing all the paths, that some apps like BBEdit happen to handle.
You must find the correct flavour and retrieve it from your code. Xojo has no way to return (nor know) all the flavours in a single method call.
You may think of it like a similar âissueâ: Finder labels and tags. Historically, the Finder only provided labels (colours and labels). Then, eventually, support for tags was added (a list of customisable labels). At that point, what should legacy labels return when there are several tags set? Apple chose to return just the first tag when one wants to query the legacy label API.
We can just assume the same about paths: the utf8 version had a legacy purpose and had to be kept around, and you must use another flavour to query the ânewâ way.
They are handling other flavours, which you need to do as well.
Again, Xojo wonât do something if you donât tell it to (and hopefully so, otherwise we wouldnât have control on what we do).
I understand all points made. However, if I asked most people the following question:
âIf you select 2 items in the Finder and do a copy, what plain text do you expect to get from the clipboard?â
I think i can guess what most would say, but maybe Iâm in the minority.
I understand your expectation, but Iâd say itâs a Finder issue, because it doesnât provide the path in the standard flavour.