TeraCopy Integration

Discuss and share scripts and script files...
Post Reply
carmenm

Re: TeraCopy Integration

Post by carmenm »

It works! thanks a lot

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

carmenm wrote:I am facing a problem with this script. My problem is that the script doesnt copy the selected files into the clipboard.
Now i want to make an UDC which uses <clipboard>, but due to the teracopy script, the clipboard is always empty.
Does anyone sees a solution to that?
i said before that i didn't want the script to use the clipboard.
but this could be a problem if you use the script to completely replace the normal copy in xy, since you wouln't be able to paste to other apps.

i'll add the option to use the clipboard in v6.6, as soon as i find where on earth i put it.
i wrote it last weekend, at my parents house, and i think i forgot to copy it to my pendrive. :evil:
it added support for the tree, and it shouldn't be hard to write again, so i'll do it later today.

i'm also thinking of using a ini file to store settings, and maybe writing a wizard to configure the script.
serendipity wrote:@Muroph: Nice script!! :D
thanks! :D

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

update to v6.6

as promised:
-support for the tree
-option to also copy/cut to clipboard
-configuration wizard
-settings saved to an ini file

you need xyplorer v7.90.0408 or later.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

another update already!?

yep.
version 6.6 had a bug i forgot to fix before posting. :oops:
the script wouldn't work correctly if you used a portable path or system variable for the work and/or teracopy path in the configuration.
so, if you downloaded v6.6, i suggest you get the fixed version.

@ Don
could you add support for portable paths to the exists() function?
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: TeraCopy Integration

Post by admin »

Muroph wrote:@ Don
could you add support for portable paths to the exists() function?
I could but I'm not sure if this is always good. Are you? Depends on what the script does with the path in the following steps... if the path is fed into "portable-aware" functions...

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: TeraCopy Integration

Post by TheQwerty »

admin wrote:
Muroph wrote:@ Don
could you add support for portable paths to the exists() function?
I could but I'm not sure if this is always good. Are you? Depends on what the script does with the path in the following steps... if the path is fed into "portable-aware" functions...
abs2rel() and rel2abs() would probably be more useful and eliminate the need for changing exists.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: TeraCopy Integration

Post by nas8e9 »

Thank you very much for this useful script! I have one question about integration: is it possible to use TeraCopy in combination with XYplorer's Copy To/Move To dialogs which allow the selection of the destination folder? I keep a number of folders in the Move/Copy/Backup To-list, so this would be very useful.

Thanks in advance.

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

nas8e9 wrote:is it possible to use TeraCopy in combination with XYplorer's Copy To/Move To dialogs which allow the selection of the destination folder?
i don't think it's possible.

i can try to add a "copy/move to" command with a favorite folders list, but i don't have much free time ATM...
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: TeraCopy Integration

Post by nas8e9 »

Muroph wrote:
nas8e9 wrote:is it possible to use TeraCopy in combination with XYplorer's Copy To/Move To dialogs which allow the selection of the destination folder?
i don't think it's possible.

i can try to add a "copy/move to" command with a favorite folders list, but i don't have much free time ATM...
I quite understand. I seem to remember some discussion about a wish item to replace all or part of XYplorer's file handling functions with external programs (as opposed to improved internal routines, which is on the roadmap). I couldn't find the relevant topics; is this still considered?

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

updated to v6.7

i had this this waiting to be tested since sunday, and today i finally manage to get some time off studies to do it.
damn finals! :x

many changes here:
--copy/move to...
you have 3 choices:
-browse to target folder;
-enter path of the target folder (CASE SENSITIVE!!!);
-click in one of the paths in the menu (they are taken from xy's copy/move to list).
the browse dialog will open with the "my computer" branch expanded.
you can change this using the variable $defbrowse (it's in the copyormove subscript).

--setting removed: "Choose what to do (...) collected items"
replaced by...

--setting added: $settagproc -> "Choose what to do with tags and comments when copying or moving items."
this affects almost all commands (read below).

--paste commands changed:
before you had 3 paste commands which would do different things.
now the "paste" command uses the global setting $settagproc.
i've also removed the "pastexy" and "pastenotags" commands from the menu.
they can still be called using labels, tho, and will override the global setting.

--fixed a theoretical (i haven't tested :D ) bug when copying or moving from a search tab.

--fixed some more small bugs.

--heaps of code cleaning. :)

--------------
@Don
i know the tag database is case sensitive, but the "tag" and "comment" commands as well? :o :?
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: TeraCopy Integration

Post by admin »

Muroph wrote:i know the tag database is case sensitive, but the "tag" and "comment" commands as well? :o :?
Uh, I'm somewhere else now mentally -- please be a bit more informative. :)

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

admin wrote:
Muroph wrote:i know the tag database is case sensitive, but the "tag" and "comment" commands as well? :o :?
Uh, I'm somewhere else now mentally -- please be a bit more informative. :)

Code: Select all

new "Test.txt";
  tag 1, "<curpath>\test.txt"; // wrong
  #485;
  msg continue;
  tag 2, "<curpath>\Test.txt"; // right
  #485;
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: TeraCopy Integration

Post by admin »

Muroph wrote:
admin wrote:
Muroph wrote:i know the tag database is case sensitive, but the "tag" and "comment" commands as well? :o :?
Uh, I'm somewhere else now mentally -- please be a bit more informative. :)

Code: Select all

new "Test.txt";
  tag 1, "<curpath>\test.txt"; // wrong
  #485;
  msg continue;
  tag 2, "<curpath>\Test.txt"; // right
  #485;
OK, true, but why would you enter an item with the wrong capitalization?

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: TeraCopy Integration

Post by Muroph »

admin wrote:OK, true, but why would you enter an item with the wrong capitalization?
in the script, the user can type a path as the target folder.
if the capitalization is wrong, the tagging subscript will fail.

that is the only place i've seen this happen, though, so it not really important.
i was just surprised.
it took me almost an hour to figure out why the script wasn't working. :lol:
at least the the "no update bug" was fixed. :)
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: TeraCopy Integration

Post by admin »

Muroph wrote:it took me almost an hour to figure out why the script wasn't working. :lol:
at least the the "no update bug" was fixed. :)
1. sorry
2. so it was not in vain

Post Reply