[quote="Anakha"]Great tip, very helpful.
Unfortunately, I am having the same problem as Indy - only the first one works. I have tried unchecking 'deselect files used in functions' , checking 'Postpone until after' and adding the @nodeselect to all called command. No dice.
Anybody else try this?[/quote]
Yes, I seem to have the same problem, but I've also discovered something else.
Far above Indy said [quote]The control sequece {file|ext} returns the directory name for a directory...which causes my problem. [/quote]
This is not strictly true. The control sequence {file|ext} returns the file name for a for a file the name of which does not contain a "." whether the file is or is not a directory.
If a file, not a directory, has no extension it will behave in the context of this thread as directories have been assumed to behave. Conversely, if a directory name contains a ".", it will behave as non-directories have been assumed to behave.
If one, for some reason had a directory named "abc.xyz", I don't know if the timestamp would be wanted before or after the ".xyz", but almost certainly if one had a file named only "abc", the characters "abc" would not be wanted both before and after the timestamp.
I stumbled across this while trying, so far unsuccessfully, to come up with a solution. I admit that, for practical purposes, this technicality may hardly matter.