Page 1 of 1

Add Tag to Items via Button

Posted: 03 May 2015 10:21
by fnkr
Hi,

I created a user button with the following script:

Code: Select all

tag("myTagName", <selitems>, 1, 0);
The problem is that
<selitems>
contains a string like

Code: Select all

"path1" "path2"
however the tag function needs a string like

Code: Select all

path1|path2
Is there any possibility to convert the string or another variable that contains the currently selected files in the correct format?
I know about
<curitem>
but I want all selected items, not just one.

I have the same issue with multiple functions e.g.
paperfolder
:

Code: Select all

paperfolder(now("yyyy-mm-dd"), <selitems>, , mode="as");

Re: Add Tag to Items via Button

Posted: 03 May 2015 10:33
by bdeshi
use    get('SelectedItemsPathNames', '|')     in place of     <selitems>    .

Re: Add Tag to Items via Button

Posted: 03 May 2015 10:49
by fnkr
Thanks, that works!