This simple script displays information about the selected item, whether a file or a folder. Thumbnails react to clicks; if it's a folder, it will open normally; and if it's a file, it will open with Opus's internal viewer (I couldn't get them to open with the default program). If a folder is selected, it will be analyzed to see if it contains images; if it does, the total number of images and the first six thumbnails will be displayed. These thumbnails also react to clicks. The script works in any view mode, even List mode. If the window is moved, we can reset its position using the "Reset position" button. The script has two translations: Spanish and English.
Once the script is installed, simply run it using a button in "Standard Function" mode (Opus or external) with the "BarraEstado" command. I can't end this presentation without first expressing my eternal gratitude to @errante for his extraordinary contribution to navigating between tabs and panels.
Note: The width and position (horizontal and vertical) of the window must be customized according to individual needs. To specify the width, do so directly in the script, on line 758; the default value is "1095". To specify the position, use the script's settings button.
Excellent solution, you could also adjust the dialog width manually on line 655: <dialog fontsize="9" height="94" lang="esm" title="Información de archivo" width="1095">
And adjust the position here:
function posicion () {
dlg.main.x = -6; // Posición horizontal
dlg.main.y = 800; // Posición vertical
}
I can't change the width. The script has only 650 lines. The word "width" is not in the script. Resources has a dialog but only resizes to 1088. I need half that width. Could you please give directions to change the width? Thanks.
@Chuck, thank you very much for your suggestions, but I didn't understand the first one; and regarding the second, your idea is excellent, I'm going to implement it!
I have a laptop with a second larger monitor. When launching the script from a lister on the second monitor, the dialog box launches on the laptop. I would prefer it to launch on the monitor that has the lister opened.
I just updated the script; now it's possible to specify the window's position using the script's settings button. I couldn't figure out how to do your other suggestion, opening the window on the same monitor as the Lister, but I'll try again later.
If your monitor's width is 2190 pixels, you must specify that value on line 758, as explained in the script description. Try going to the end of the script, to the resources section (SCRIPT RESOURCES), and locate this line:
And replace 1095 with 2190. Ideally, the script would automatically capture the screen width and perform this substitution on its own, but I'm not sure if that's possible.
@Leo, what I'd like to do is have the dialog width automatically adjust to the screen width. Is there any way to make the width of a dialog change dynamically? Thank you very much.
Thanks for this. I think part of my issue is I am an English speaker. The script appears in Spanish on my system and is the only one that appears as such.