Script for same catalog item be used to ADD tag or FIND tag (depending if clicked or file drag&drop)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Script for same catalog item be used to ADD tag or FIND tag (depending if clicked or file drag&drop)

Post by cadu »

Hi, I'd appreciate your help.

I'm using a catalog item to add tags to files based on this script:

Code: Select all

tag "tagname",,1,0;
Currently, the tag can be added either:
(a) by dragging and dropping the files into the catalog item.
(b) by selecting files and clicking on the catalog's item, or


I'd like to change (b) behavior, having the same catalog item set to either ADD tag or FIND tag, considering:
(a) A tag would be added only "by dragging and dropping the files into the catalog item".
(b) And if I "click on the catalog item", it would find the respective tag instead.
Is it possible? How to?

In this screen-recording (https://bit.ly/3f2BgFu) I showed my current configuration, and also what I'm asking if it is possible to achieve.

Thank you!
Carlos

highend
Posts: 13309
Joined: 06 Feb 2011 00:33

Re: Script for same catalog item be used to ADD tag or FIND tag (depending if clicked or file drag&drop)

Post by highend »

<get drop> contains either nothing (on click) or... the dropped items and a simple if ... else statement should be doable, right?
One of my scripts helped you out? Please donate via Paypal

Post Reply