Page 7 of 16

Re: TeraCopy Integration

Posted: 17 Jun 2009 18:05
by carmenm
It works! thanks a lot

Re: TeraCopy Integration

Posted: 17 Jun 2009 18:41
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

Re: TeraCopy Integration

Posted: 19 Jun 2009 03:03
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.

Re: TeraCopy Integration

Posted: 20 Jun 2009 02:08
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?

Re: TeraCopy Integration

Posted: 20 Jun 2009 06:45
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...

Re: TeraCopy Integration

Posted: 20 Jun 2009 16:14
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.

Re: TeraCopy Integration

Posted: 20 Jun 2009 17:17
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.

Re: TeraCopy Integration

Posted: 20 Jun 2009 17:53
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...

Re: TeraCopy Integration

Posted: 20 Jun 2009 18:32
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?

Re: TeraCopy Integration

Posted: 24 Jun 2009 09:19
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 :?

Re: TeraCopy Integration

Posted: 24 Jun 2009 09:33
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. :)

Re: TeraCopy Integration

Posted: 24 Jun 2009 09:56
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;

Re: TeraCopy Integration

Posted: 24 Jun 2009 10:18
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?

Re: TeraCopy Integration

Posted: 24 Jun 2009 11:51
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. :)

Re: TeraCopy Integration

Posted: 24 Jun 2009 13:16
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