Collect and paste

Discuss and share scripts and script files...
aimy
Posts: 181
Joined: 26 Feb 2007 15:44

Re: Collect and paste

Post by aimy »

Thank you so much serenditpity!! :wink:

aimy
Posts: 181
Joined: 26 Feb 2007 15:44

Re: Collect and paste

Post 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 180 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.
Last edited by aimy on 01 Oct 2014 03:01, edited 1 time in total.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Collect and paste

Post 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 213 times
--------old uploads--------
XYCollector.xys
Fixed "Edit Script" menu display
(3.98 KiB) Downloaded 169 times
XYCollector.xys
[reuploaded with proper credits]
(3.78 KiB) Downloaded 171 times
[/size]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

aimy
Posts: 181
Joined: 26 Feb 2007 15:44

Re: Collect and paste

Post 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.

sinilill
Posts: 111
Joined: 02 Dec 2013 18:37

Re: Collect and paste

Post by sinilill »

great script, but is there a quick way to mark all the checkboxes or disable them?

yusef88
Posts: 1123
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: Collect and paste

Post by yusef88 »

good script :appl:
can i show collected items as a paper folder?

i used last version by SammaySarkar

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Collect and paste

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Collect and paste

Post 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:
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Collect and paste

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

eil
Posts: 1617
Joined: 13 Jan 2011 19:44

Re: Collect and paste

Post 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).
Win 7 SP1 x64 100% 1366x768

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Collect and paste

Post 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
One of my scripts helped you out? Please donate via Paypal

eil
Posts: 1617
Joined: 13 Jan 2011 19:44

Re: Collect and paste

Post 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?
Win 7 SP1 x64 100% 1366x768

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Collect and paste

Post 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?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Collect and paste

Post by highend »

Those context menu items are a feature of inputselect() and they copy the text of the item(s)
to the clipboard^^
One of my scripts helped you out? Please donate via Paypal

chincherpa
Posts: 37
Joined: 13 Dec 2016 10:58
Location: Stuttgart, Germany

Re: Collect and paste

Post 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

Post Reply