[Solved] How to unify script - sort files based on tags?

Discuss and share scripts and script files...
Post Reply
stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

[Solved] How to unify script - sort files based on tags?

Post by stanmarsh »

hello xyplorer community,

i have made a simple scriptlets that moves files based on their tags, i would like to combine them into one so i would just click once and it will sort all files into their respective specified folder.

in my video folder i tagged files by "watched" & "playlist" and files with no tags = movies not yet seen

watched = movies already seen
playlist = movies going to watch

code:
selfilter "watched",,"tags";
moveto "c:\video\watched",":list";

selfilter "playlist",,"tags";
moveto "c:\video\playlist",":list";

i like these to code to combine into one.

TIA
Last edited by stanmarsh on 29 May 2013 13:47, edited 1 time in total.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: How to unify script - sort files based on tags?

Post by Stefan »

See help > Scripting > Script Files

and the upwards to "Multi-Scripts"
A script can have more than one line (multi-line script),
and a script resource can have more than one script (multi-script).


For example, this is one "main" script resource with two scripts (multi-script)

Code: Select all

"watched = movies already seen"
    selfilter "watched",,"tags";
    moveto "c:\video\watched",":list";

"playlist =  movies going to watch"
   selfilter "playlist",,"tags";
   moveto "c:\video\playlist",":list";

Is it that?

stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

Re: How to unify script - sort files based on tags?

Post by stanmarsh »

Stefan, thanks for the help,

i read the help and realized i need to indent it so it will act as one big script!

"watched & playlist = movies watched and the next attraction"
selfilter "watched",,"tags";
moveto "c:\video\watched",":list";
selfilter "playlist",,"tags";
moveto "c:\video\playlist",":list";

thanks again! solved!

Post Reply