Cannot get this to work. Or maybe I am not getting it? I expected to see "No files selected" in some kind of dialog that allows me to exit the script gracefully. Instead I get to see "No files selected" in the XY script environment - that dialog stuff that belongs under the hood and not to the interface.HelpFile example under ForEach Loops wrote: // shows "No files selected!" if no files are selected, and skips the loop
foreach($item, <get selecteditemspathnames>, <crlf>, , "No files selected!") {
echo $item;
}
Also, could someone please me string me along how to skip (within that loop) file types that are not jpg or jpeg or gif or png?
I tried tons of variations that look more or less like this:
Code: Select all
if (get($item, "ext") LikeI ("jpg" or "gif") {......}
XYplorer Beta Club