I'm learning to use my trial edition of Directory Opus. One function that I feel useful to me is to add certain logic to copy/paste.
When I copy/paste/move, if the file(s) are less than 20MB, or the number of files is less than 50, copy them by internal copy function; otherwise copy by fastcopy.
I am willing to write script, but I don't know how to start.
I want this function to get invoked whenever I press control-v or I click Paste menu item in context menu.
I will be very appreciated if you can provide some code.
I believe this is where I can insert my own logic.
This is my idea that I can keep copy and cut unchanged, but only change paste command.
In paste command, I need to first get the files names saved in the clipboard. I had a quick read of the api (gpsoft.com.au/help/opus11/i ... pboard.htm) and there is seemingly no options to get the content of clipboard.
Is there any command to get the content of clipboard?
Are you sure FastCopy is actually faster, and do you know why it is faster? You may be able to configure Opus to copy at the same speed, if you know where the difference is coming from.
(e.g. When copying lots of small files, preserving dates and attributes becomes significant, and one program may be doing it and slower while the other isn't and is faster.)
I agree with Leo, think twice before you replace things in DO that actually work nicely and comprehensively.
If you still want to play with the scripting part and get items from the clipboard to implement your branching logic, the Command object is what you look for. It has a GetFilesFromClipboard() method or similar, pulling items to act on from the clip.