Re: can i import a totolcommander list of files?
Posted: 12 Dec 2017 21:04
you can select the file you just created and put "paper:<curitem>" in the address bar too if you find it easier.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
hihighend 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...
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
0Code: Select all
::snippet <clp>;hiSammaySarkar 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.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
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 0step 3. Now drag a collection file from TotalCommander on to this button. The items in that collection should be listed by XYplorer.Code: Select all
::snippet <clp>;
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.giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
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
0HiSammaySarkar wrote: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.giuliastar wrote:thanks a lot , i mean send files from total commander or drag and drop without a txt file
is it possibile?
Use this code instead.
[/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).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
Anything dropped on this button should be listed by XYplorer, as you wanted.

Where did I ask you to do this?giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
hi have read itSammaySarkar wrote:Where did I ask you to do this?giuliastar wrote:1)
Scripting ->run script
2) paste your script and click ok
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.
&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.
there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
Well, you could have tried following the directions as laid out anyway.giuliastar wrote:&SammaySarkar wrote:step 1. Copy this code below.there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.
hiSammaySarkar wrote:Well, you could have tried following the directions as laid out anyway.giuliastar wrote:&SammaySarkar wrote:step 1. Copy this code below.there is no indication about where should i pastestep 2. type this in XYplorer's addressbar and press ENTER. A new button with clipboard icon will be added to the toolbar.![]()
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.
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.giuliastar wrote:could you post in Script Exchange ?
hiSammaySarkar wrote: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.giuliastar wrote:could you post in Script Exchange ?
hiSammaySarkar 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.