Here’s the Gemini suggestion to add a title to a “Select Folder” (the API 2 code).
In fact, there are 3 folders that are choosed:
the source image(s) folder,
the modified image folder (saved there)
the resized images (saved there)![]()
Le titre de la boîte de dialogue : Sous macOS, la propriété .Title d’un SelectFolderDialog ne s’affiche pas sous forme de texte en-tête dans la fenêtre native du système (contrairement à d’autres OS), ce qui fait qu’on ne distingue pas clairement quel dossier on est en train de sélectionner. Pour contourner cela et guider l’utilisateur proprement, la meilleure pratique en Xojo sous macOS est d’afficher un simple MessageDialog juste avant chaque SelectFolderDialog (ex: “Veuillez sélectionner le dossier source…”).
Google Translate into English:
Dialog box title: On macOS, the .Title property of a SelectFolderDialog does not appear as a header text within the native system window (unlike on other operating systems), making it unclear which folder is being selected. To work around this and provide clear guidance to the user, the best practice in Xojo on macOS is to display a simple MessageDialog immediately before each SelectFolderDialog (e.g., “Please select the source folder…”).
And the proposed code shows a MessageBox with text…
I asked Gemini how to apply a white balance to image(s) (save it and resize to w = 250 in their respective folders). Only the first part was mandatory (and therefore do not works)…
Ah the joy of AI (and 2 hours lost)