Action on each selected items
Posted: 24 Nov 2014 20:35
Hello,
sorry for noob question but I've read a lot of the help and on the forum and don't know how to do.
I've written a little script with resize an image using Irfanview command line. I select the file, click on the button and it works.
Now I want to make the same with some selected files. As I understand I must create a list and work on each file from the list but I cannot manage it.
I took a look at get("SelectedItemsPathNames", ,); and paperfolder("Favs", "<get selecteditemspathnames |>", "|", "as");
Thanks for your help.
sorry for noob question but I've read a lot of the help and on the forum and don't know how to do.
I've written a little script with resize an image using Irfanview command line. I select the file, click on the button and it works.
Code: Select all
$largeur = input("Largeur", "Taille", , [style=s], [cancel], [width=600], [height=400]);
$script= '"C:\Program Files\IrfanView\i_view32.exe" '." <curitem>"." /resize=("."$largeur".","."$largeur".") /aspectratio /resample /convert=E:\images\Output\"."<curname>";
run $script;I took a look at get("SelectedItemsPathNames", ,); and paperfolder("Favs", "<get selecteditemspathnames |>", "|", "as");
Thanks for your help.