[Solved] Favorite tools - repeat execution for each item

Discussion and questions - donor version.
Post Reply
Message
Author
user8899
Posts: 13
Joined: 11.07.2013, 22:24

[Solved] Favorite tools - repeat execution for each item

#1 Post by user8899 » 12.07.2013, 00:17

Hi.

When creating a favourite tool, there should be an option to have it executed repeatedly for each selected item, in contrast to a single execution for all the items at once.

Let's say we have a tool defined as:
Program: program.exe
Parameter: %ActivSel%
and let's say we want to execute it with an active selection consisting of Item1, Item2, Item3....

FC executes such a tool as if it was started by a command:

Code: Select all

program.exe %ActiveSel%
or

Code: Select all

program.exe Item1 Item2 Item3...
What I would see added to FC is a way to execute this tool using an iteration, like so:

Code: Select all

for ITEM in %ActiveSel% do program.exe ITEM
which translate to multiple separate executions:

Code: Select all

program.exe Item1
program.exe Item2
program.exe Item3
...
I know it could be achieved by using a simple batch file, and I did that. But there are 3 major problems with that.

1. When using %ActiveSel% as a parameter FC gives an error ("Access denied.") if CMD's limit of a single command line string length is exceeded, otherwise you can only process a limited maximum number of items at once (in my case it's like 20-30 at a time).

2. Using %ActiveSelAsFile% can potentially be a work around here, but there is a problem of non-ASCII characters in paths. Even if FC correctly stores such paths inside a list in a temporary file, when you try to pass those paths back to CMD the non-ASCII characters (the Polish letters in my case) are still LOST. So instead of "zdjęcia" i get "zd_cia" or things like that.

3. The last problem is that some programs don't allow you to pass a list of files in a text file as a parameter (no use for %ActiveSelAsFile%) or some even won't support taking multiple parameters at once (no use for %ActiveSel%).

Is it possible to implement such a thing in a near future?
Did anyone ever had such a need beside me?

Regards.
Last edited by user8899 on 08.04.2015, 02:33, edited 4 times in total.

Marek
Author
Author
Posts: 4229
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Favorite tool - separate execution for each item

#2 Post by Marek » 16.07.2013, 22:21

Is it possible to implement such a thing in a near future?
Implemented for the release 630.

user8899
Posts: 13
Joined: 11.07.2013, 22:24

Re: Favorite tool - separate execution for each item

#3 Post by user8899 » 17.07.2013, 23:49

Marek wrote:Implemented for the release 630.
Oh, wow! That's so awesome!
So much thanks!

I can't wait to try it out!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests