Page 1 of 1

moving files above/below/top or bottom

Posted: 12 Mar 2011 10:46
by kotlmg
i need a script to shift the selected files in xyplorer viewer window to top or bottom or above or below within the same folder. can any one please give me the xyscript code for achieving the above result.

Re: moving files above/below/top or bottom

Posted: 15 Mar 2011 06:56
by kotlmg
i think no one has understood my question? my problem is to move selected files in xyplorer list view either to top or bottom or above 5 files or below 5 files or move one by one up or down. at present no such facility is available in xyplorer list view. i badly require this script.

Re: moving files above/below/top or bottom

Posted: 15 Mar 2011 11:06
by Biggynuff
Will this help . . .

I'm assuming that you want to move files so that the list appears however you want it to appear, with no automatic sorting of the order of files?

Ok, if that's the case view your list and do this:

Tools > Customize List > Manual Sorting

Select the above option so the menu item is 'ticked'. Now when you select a list item and drag it, an small indicator bar appears to show you where it will be dropped. You can now manually sort the list in any order you like

It wouldn't be possible to automate this with a script, because how would the script know which order you want the list items to be in?

Hope I've understood your question and that this helps

Biggy 8)

Re: moving files above/below/top or bottom

Posted: 07 Dec 2011 17:49
by kotlmg
can anyone give script on the above requirement. basically i need a rename file script. before renaming i want the selected files to be ordered by modified date in ascending order and rename is to be applied.
please help me with script.

Re: moving files above/below/top or bottom

Posted: 27 Dec 2011 14:52
by Twisten
What you want is to 'filter' explicitly so only the selected files are visible, than you want to 'sortby' the Modified column.

Re: moving files above/below/top or bottom

Posted: 29 Dec 2011 12:18
by kotlmg
Twisten wrote:What you want is to 'filter' explicitly so only the selected files are visible, than you want to 'sortby' the Modified column.
my requirement is "'filter' explicitly so only the selected files are visible, thanto 'sortby' the Modified column" and apply rename function on the above selected result files.

Re: moving files above/below/top or bottom

Posted: 29 Dec 2011 15:39
by Stefan
>>Show only the selected items (click)<<


Possible script (as first start. Has to be adjusted to suit your needs):

Code: Select all

//Show only the selected items:
   filter '"selected items" ' . get("SelectedItemsNames", "|");


//sortby [column], [order (|a|d|clk)]
//Sorts by Modified in ascending order:
   sortby m, a;


//call rename
//rename [mode (b|r|s|k|e)], pattern, [preview (p)], [itemlist],
   rename b, '*', p;


See help > "Scripting Commands Reference > rename" for more.

Re: moving files above/below/top or bottom

Posted: 29 Dec 2011 18:51
by kotlmg
thanks stefan, it works.