Page 3 of 4

Re: Collect and paste

Posted: 18 Oct 2011 04:26
by aimy
Thank you so much serenditpity!! :wink:

Re: Collect and paste

Posted: 28 Sep 2014 14:04
by aimy
Is this feature already catered by XYplorer by default? It seems not.

This script is already buggy since it still used the old script syntax. I got an error when running this script.

Thanks a lot to @PeterH for informing about the new syntax - http://www.xyplorer.com/xyfc/viewtopic. ... pt+command

So I've corrected all the errors in the attached file. Well I hope it already covers all.
XYplorer_Collect v2.xys
Updated on Wednesday, 01 October, 2014 09:00:13 AM with some syntax corrections.
(6.21 KiB) Downloaded 183 times
By the way, why this very useful script is not included in this list - http://www.xyplorer.com/xyfc/viewtopic. ... ty#p111834

Thank you.

Re: Collect and paste

Posted: 29 Sep 2014 14:04
by bdeshi
Thank you for rejuvenating this topic. It was undoubtedly a super-useful script in its time.

I've been using a similar but much much simpler script for the job.
If anybody's interested, here's XYCollector, a combination of my system with XY_Collect.
XYCollector.xys
Latest. Paper folder integration, fixed deduping itemlist
(4.88 KiB) Downloaded 215 times
--------old uploads--------
XYCollector.xys
Fixed "Edit Script" menu display
(3.98 KiB) Downloaded 171 times
XYCollector.xys
[reuploaded with proper credits]
(3.78 KiB) Downloaded 173 times
[/size]

Re: Collect and paste

Posted: 29 Sep 2014 15:32
by aimy
Thank you Sammy for your correction.

Yes, I truly find this script is very practical and useful since it's very common to do such operation i.e. copying/moving several files from multiple locations.

So I really hope that this can be included by default in future versions of XYplorer or at least please list it out among the major available scripts.

Thank you.

Re: Collect and paste

Posted: 30 Sep 2014 21:47
by sinilill
great script, but is there a quick way to mark all the checkboxes or disable them?

Re: Collect and paste

Posted: 30 Sep 2014 23:40
by yusef88
good script :appl:
can i show collected items as a paper folder?

i used last version by SammaySarkar

Re: Collect and paste

Posted: 01 Oct 2014 08:45
by bdeshi
@sinilill: right click any item and choose "Check All"/"Uncheck All"
@yusef: done. Check my original post above.
Always uses a paper folder called XYCollector, but you can uncomment a particular line in the script to get a choice of target paper folder at runtime.

Re: Collect and paste

Posted: 01 Oct 2014 13:26
by klownboy
Nice script - it will be very useful. I've made it the right click on a CTB along with Selection Store though it appears they may be very similar. Thanks for updating to Sammay and Aimy. :appl:

Re: Collect and paste

Posted: 01 Oct 2014 16:07
by bdeshi
I used to have a shell ext called PikyBasket in my pre-XY days; XYCollector, or rather it's simpler version, was born to mimic that. (this script is more true to pikyBasket's behavior than SelStore)
After all, It's only natural to try replacing the best part of other programs with XY/Script.

Re: Collect and paste

Posted: 25 Oct 2017 14:31
by eil
i hope it won't be "too necro".. can smb please help to modify this script to add one more function >
- when you collect items with this script and use "Show collected items", it shows them as:
item1
item2
item3
i need to transform this into:
"item1" "item2" "item3"
and copy to clipboard as a text.

this thing is very helpful when you need to past a list of files in some app for send/upload(say Skype "select files to send" system popup window).

Re: Collect and paste

Posted: 25 Oct 2017 15:28
by highend
No clue which script (and version) you mean, there are several ones in this thread...

Using Sammays last version..

Old

Code: Select all

"Show collected items|:qfv : _show"
	$ViewItems = input("You have collected $p_CollectPaste_Count item".(($p_CollectPaste_Count=1)?'.':"s."), "You can edit the list below -- one line per item.", replace($p_CollectPaste_Items, "|",<crlf>), m, , 600, 50%);
	unset $ViewItems;
	//$p_CollectPaste_Items = inputselect("You have collected $p_CollectPaste_Count item".(($p_CollectPaste_Count=1)?'.':"s.")."<crlf>You can edit the itemlist here -- check the items you want to keep", $p_CollectPaste_Items,, 1+2+64, , 600, 50%, "XYCollector - Collected Items");
	$p_CollectPaste_Count = gettoken($p_CollectPaste_Items, count, "|");
	writepv;
	status "collected itemlist updated";
New

Code: Select all

"Show collected items|:qfv : _show"
	$ViewItems = input("You have collected $p_CollectPaste_Count item".(($p_CollectPaste_Count=1)?'.':"s."), "You can edit the list below -- one line per item.", '"' . replace($p_CollectPaste_Items, "|",'" "') . '"', m, , 600, 50%);
	$p_CollectPaste_Items = formatlist(replace($ViewItems,<crlf>,"|"), sde, "|");
	copytext $p_CollectPaste_Items;
	unset $ViewItems;
	//$p_CollectPaste_Items = inputselect("You have collected $p_CollectPaste_Count item".(($p_CollectPaste_Count=1)?'.':"s.")."<crlf>You can edit the itemlist here -- check the items you want to keep", $p_CollectPaste_Items,, 1+2+64, , 600, 50%, "XYCollector - Collected Items");
	$p_CollectPaste_Count = gettoken($p_CollectPaste_Items, count, "|");
	writepv;
	status "collected itemlist updated";
If it's not, do it yourself

Re: Collect and paste

Posted: 25 Oct 2017 17:51
by eil
thank you highend , your variant works as desired :appl: . my bad not stating what script i was referring to, but you guessed right i it was about Sammay's last version.
one little question: XY has clipboard button that allows to edit it and show clipboard content on hover - do you know if user buttons can acquire this hover feature?

Re: Collect and paste

Posted: 03 Nov 2017 20:40
by Papoulka
Sammay - After making a collection I use the "Copy items to..." menu choice. This brings up the window showing all items collected, with checkboxes. I right-click on any item and the copy choices are "Copy item", "Copy all items", and "Copy checked items". The first two choices seem to do nothing i.e. if I pick either one and then press "OK", the script just ends. Checkmarking items and then using "Copy checked items" works fine. Can the two dud entries be fixed or removed?

Re: Collect and paste

Posted: 03 Nov 2017 20:51
by highend
Those context menu items are a feature of inputselect() and they copy the text of the item(s)
to the clipboard^^

Re: Collect and paste

Posted: 06 Nov 2017 08:37
by chincherpa
Hi,

am I really the only one getting script errors when using the two scripts?
Do I have somewhere a wrong setting?

I'm running latest XY, 18.50.0200 portable

Talking about these 2 scripts:
- XYplorer_Collect v2.xys - Updated on Wednesday, 01 October, 2014
- XYCollector.xys - Latest

Errors like this one:
Image

I could fix all errors in XYplorer_Collect v2.xys. Some missing " " .

In XYCollector.xys I don't know how to fix this one:
Image

Is there something wrong on my end?

greetz