Page 1 of 1

using script from catalog

Posted: 02 Jul 2009 16:19
by carmenm
hI,

Thanks to this forum's people, i found out about tortoiseSVN script and managed to modify it so that i can use it from the catalog.
What i did is a function that i call from the catalog that either update the selected item, or the current dir if no item is selected.
It works great except from one strange behavior. When i drag items to the catalog entry i get that message:
"::load "TortoiseSVN", "_updateItems";\"

I clearly see that the error comes from the "\" but i dont really know why it adds that to the command when dragging a object.

I know i dont need to drag a object to the action, but i often do it as a reflex and i really would like it to work too.

Any idea?

Thanks

Re: using script from catalog

Posted: 02 Jul 2009 16:33
by TheQwerty
Unfortunately you can't execute script files in that way.. and I don't believe Don will be giving us a way to do so in the near future.

Not what you wanted, but it should probably display a more accurate error message.

Re: using script from catalog

Posted: 02 Jul 2009 16:42
by admin
I'm confused. Dropping anything on script items in Catalog is not possible. Or is it?

Re: using script from catalog

Posted: 02 Jul 2009 17:30
by TheQwerty
admin wrote:I'm confused. Dropping anything on script items in Catalog is not possible. Or is it?
It is, and depending on how the script is defined you get different errors:

As "#1427;" I get a "Couldn't find application: D:\xyplorer\#1427;"
As "::#1427;" I get "Couldn't find application: ::#1427;"
As

Code: Select all

"Awesome Stuff"
  #1427;
I get "Failed to open: Awesome Stuff"

I have Quick Scripting and the smart script detection tweak enabled if that matters.

Re: using script from catalog

Posted: 02 Jul 2009 17:53
by admin
Not here. I find no way to drop anything on those items. :?

Re: using script from catalog

Posted: 02 Jul 2009 18:00
by admin
admin wrote:Not here. I find no way to drop anything on those items. :?
OK, I saw it. There's a bug...

Re: using script from catalog

Posted: 02 Jul 2009 18:12
by TheQwerty
Well.. I don't know if I'll be able to play around and determine why my setup allows it until next week, when I will no doubt have forgotten about it. :P

But why can't we drop files on a script?
In fact I think we should be able to, and it should populate <items> with the dropped paths, and then execute the script.

Or maybe instead of <items> it should use <dropItems> or something, so that a script using Run("blahblah <items>"); would still work properly (in that <items> doesn't get resolved before the Run command).

Would that even be possible?

Re: using script from catalog

Posted: 02 Jul 2009 18:34
by carmenm
The only thing i would want right know is to have the same behavior with a script on the catalog as we have with an application on the catalog. Which is launch with the selected items or dragged items (which is the same).

Re: using script from catalog

Posted: 02 Jul 2009 18:52
by admin
TheQwerty wrote:But why can't we drop files on a script?
Had the same thought. Made a note on my scripting 4.0 list.

Re: using script from catalog

Posted: 04 Jul 2009 12:16
by carmenm
admin wrote:
TheQwerty wrote:But why can't we drop files on a script?
Had the same thought. Made a note on my scripting 4.0 list.
very nice to hear