can i import a totolcommander list of files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: can i import a totolcommander list of files?

Post by jupe »

you can select the file you just created and put "paper:<curitem>" in the address bar too if you find it easier.

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

highend wrote:You have to do this in the <xydata>\paper folder!
And then you use paper:<base name of the file you've just created>
to display all items in it...
hi
ok but is the only way?
is there a way to drag & drop a bunch of files in xyplorer?

thanks

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

you can drag things on to a custom toolbar button (or a UDC, or a script file).

Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.

step 1. Copy this code below.

Code: Select all

Snip: CTB 1
  XYplorer 18.50.0307, 12/13/2017 12:55:10 PM
Action
  NewUserButton
Name
  List Files in TC collections
Icon
  :paste
ScriptL
  // drop a TC collection file on this button and the items will be listed.
    if (exists(<drop>) == 1) {
      $list = readfile(<drop>);
      $items = replace($list, <crlf>, ';');
      goto $items.'? /n';
    }
    
  
ScriptR
  
FireClick
  0
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.

Code: Select all

::snippet <clp>;
step 3. Now drag a collection file from TotalCommander on to this button. The items in that collection should be listed by XYplorer.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:you can drag things on to a custom toolbar button (or a UDC, or a script file).

Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.

step 1. Copy this code below.

Code: Select all

Snip: CTB 1
  XYplorer 18.50.0307, 12/13/2017 12:55:10 PM
Action
  NewUserButton
Name
  List Files in TC collections
Icon
  :paste
ScriptL
  // drop a TC collection file on this button and the items will be listed.
    if (<drop>) {
      $list = readfile(<drop>);
      $items = replace($list, <crlf>, ';');
      goto $items.'?';
    }
    
  
ScriptR
  
FireClick
  0
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.

Code: Select all

::snippet <clp>;
step 3. Now drag a collection file from TotalCommander on to this button. The items in that collection should be listed by XYplorer.
hi
thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
thanks again appreciate your help a lot

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
Ah, right. I had the same idea. Actually listing dropped items from any application can be a great feature. So I'd already modified that snippet for myself.

Use this code instead.

Code: Select all

Snip: CTB 1
  XYplorer 18.50.0307, 12/13/2017 1:16:42 PM
Action
  NewUserButton
Name
  List dropped
Icon
  :crl
ScriptL
  // drop items from external apps onto this button and the items will be listed .
    $list = <drop>;
    if ($list) {
      $items = replace($list, <crlf>, ';');
      $target = $items.'? /n';
      goto $target;
    }
  
ScriptR
  
FireClick
  0
[/size]The same drill as before. Copy the code, type "::snippet <clp>;" into addressbar, and find a new added button (with a nutty icon this time).
Anything dropped on this button should be listed by XYplorer, as you wanted.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:
giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
Ah, right. I had the same idea. Actually listing dropped items from any application can be a great feature. So I'd already modified that snippet for myself.

Use this code instead.

Code: Select all

Snip: CTB 1
  XYplorer 18.50.0307, 12/13/2017 1:16:42 PM
Action
  NewUserButton
Name
  List dropped
Icon
  :crl
ScriptL
  // drop items from external apps onto this button and the items will be listed .
    $list = <drop>;
    if ($list) {
      $items = replace($list, <crlf>, ';');
      $target = $items.'? /n';
      goto $target;
    }
  
ScriptR
  
FireClick
  0
[/size]The same drill as before. Copy the code, type "::snippet <clp>;" into addressbar, and find a new added button (with a nutty icon this time).
Anything dropped on this button should be listed by XYplorer, as you wanted.
Hi

i select
1)
Scripting ->run script
2) paste your script and click ok
3) address bar ::snippet <clp>; & got it error
Image

i have no button , what's wrong?
thanks

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
Where did I ask you to do this?

Please read the directions carefully.

Alternatively, try this. type just "::snippet;" in the address bar. A textbox will open. Paste the entire code there and press OK.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:
giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
Where did I ask you to do this?

Please read the directions carefully.

Alternatively, try this. type just "::snippet;" in the address bar. A textbox will open. Paste the entire code there and press OK.
hi have read it
but
you can drag things on to a custom toolbar button (or a UDC, or a script file).

Here, try this. This will add a toolbar button. You drag a TC collection text file on to that button, and the files in that collection will be listed by XY. You then do tagging or whatever with the files.

step 1. Copy this code below.
&
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
there is no indication about where should i paste

i typed and pasted your code i have an icon and it work beautifully!!
this script could be added in Script Exchange , it's really amazing
thanks

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

giuliastar wrote:
SammaySarkar wrote:step 1. Copy this code below.
&
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
there is no indication about where should i paste
Well, you could have tried following the directions as laid out anyway. :whistle:
See, in step 2 there, I asked you to type "::snippet <clp>;" ? Well, the <clp> bit automatically gets the clipboard content (the copied code in this case). So you did not need to paste anywhere yourself.

Anyway, you got it working, and I'm glad to help. Yeah, I agree, this can be a really useful snippet. :tup:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:
giuliastar wrote:
SammaySarkar wrote:step 1. Copy this code below.
&
step 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
there is no indication about where should i paste
Well, you could have tried following the directions as laid out anyway. :whistle:
See, in step 2 there, I asked you to type "::snippet <clp>;" ? Well, the <clp> bit automatically gets the clipboard content (the copied code in this case). So you did not need to paste anywhere yourself.

Anyway, you got it working, and I'm glad to help. Yeah, I agree, this can be a really useful snippet. :tup:
hi
could you post in Script Exchange ?
thanks pal , appreciate your help

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

giuliastar wrote:could you post in Script Exchange ?
mhh,it feeels a bit too bare for an individual thread at scripts-exchange. I'd first like to flesh it out more; add some enhancements... keep a look-out. :)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:
giuliastar wrote:could you post in Script Exchange ?
mhh,it feeels a bit too bare for an individual thread at scripts-exchange. I'd first like to flesh it out more; add some enhancements... keep a look-out. :)
hi
may i ask you few questions?
just because i'm a noob /novice and english is not my native language

::snippet <clp>; -> does it create a new button ? or what does this command do?
just because i have not found in guide

thanks
Last edited by giuliastar on 13 Dec 2017 11:49, edited 1 time in total.

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can i import a totolcommander list of files?

Post by highend »

One of my scripts helped you out? Please donate via Paypal

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

Re: can i import a totolcommander list of files?

Post by bdeshi »

Meanwhile, I posted the script with some bells and whistles to Script Exchange: viewtopic.php?f=7&t=18235
I'm glad that you liked it so much. :D
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can i import a totolcommander list of files?

Post by giuliastar »

SammaySarkar wrote:Meanwhile, I posted the script with some bells and whistles to Script Exchange: viewtopic.php?f=7&t=18235
I'm glad that you liked it so much. :D
hi
you know i still don't know how run a script?
and how can have a list of script in xyplorer?
yes i know it's sad
thanks

Post Reply