using script from catalog

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

using script from catalog

Post 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

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

Re: using script from catalog

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

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

Re: using script from catalog

Post by admin »

I'm confused. Dropping anything on script items in Catalog is not possible. Or is it?

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

Re: using script from catalog

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

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

Re: using script from catalog

Post by admin »

Not here. I find no way to drop anything on those items. :?

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

Re: using script from catalog

Post by admin »

admin wrote:Not here. I find no way to drop anything on those items. :?
OK, I saw it. There's a bug...

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

Re: using script from catalog

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

carmenm

Re: using script from catalog

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

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

Re: using script from catalog

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

carmenm

Re: using script from catalog

Post 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

Post Reply