Add Tag to Items via Button

Discuss and share scripts and script files...
Post Reply
fnkr
Posts: 2
Joined: 03 May 2015 10:10

Add Tag to Items via Button

Post 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");

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Add Tag to Items via Button

Post by bdeshi »

use    get('SelectedItemsPathNames', '|')     in place of     <selitems>    .
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

fnkr
Posts: 2
Joined: 03 May 2015 10:10

Re: Add Tag to Items via Button

Post by fnkr »

Thanks, that works!

Post Reply