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
using script from catalog
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: using script from catalog
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.
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
I'm confused. Dropping anything on script items in Catalog is not possible. Or is it?
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: using script from catalog
It is, and depending on how the script is defined you get different errors:admin wrote:I'm confused. Dropping anything on script items in Catalog is not possible. Or is it?
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 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
Not here. I find no way to drop anything on those items. 
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: using script from catalog
OK, I saw it. There's a bug...admin wrote:Not here. I find no way to drop anything on those items.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: using script from catalog
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. 
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?
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
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
Had the same thought. Made a note on my scripting 4.0 list.TheQwerty wrote:But why can't we drop files on a script?
FAQ | XY News RSS | XY X
-
carmenm
Re: using script from catalog
very nice to hearadmin wrote:Had the same thought. Made a note on my scripting 4.0 list.TheQwerty wrote:But why can't we drop files on a script?
XYplorer Beta Club