Folder selected in tree as argument?

Hello!

Is there a way to pass to a button as argument a folder selected in tree panel?

X.

Well, if you've got a folder actually selected from the tree already... that folder should be the current {sourcepath}. If you're looking for a way to process a folder item from the tree when you click the RMB on it, then I think you should be able to get away with using the standard "%1" variable. If you're unsure how to use it, reply back and say which one of the scenarios you're looking to work with and what command you want to run and whether or not you want to run it with a context menu (RMB) action or a toolbar button, or whatever...