V7.70 broke my (very simple) script?

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
petersboulton
Posts: 157
Joined: 01 Sep 2008 09:54

V7.70 broke my (very simple) script?

Post by petersboulton »

I have a very simple script to launch any image file into an aged version of Corel PhotoPaint:

Code: Select all

::run "C:\Corel\Draw70\programs\photopnt.exe" <curitem>;
I have it as an entry in my Catalog with the property 'Go to Location'.

It worked on XYplorer 7.6 but isn't working any more. I recently updated to 7.70 so I'm guessing it's that that's caused it.

I'm a scripting newbie - that's my only script - but has the syntax changed or is it a bug?

Thanks,

Pete

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

Re: V7.70 broke my (very simple) script?

Post by admin »

Do it like this:

Code: Select all

::run "C:\Corel\Draw70\programs\photopnt.exe <curitem>";
(< is interpreted as comparison operator otherwise)

petersboulton
Posts: 157
Joined: 01 Sep 2008 09:54

Re: V7.70 broke my (very simple) script?

Post by petersboulton »

Fantastic. Thanks! (Simple really. :oops: )

Pete

tgrand
Posts: 17
Joined: 03 Oct 2008 20:23

Re: V7.70 broke my (very simple) script?

Post by tgrand »

I think I have a very similar problem, but I couldn't find a way to successfully apply the advice from this thread. The following script worked in 7.60 but stopped working in 7.70:

Code: Select all

run "c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:"<curpath>\" /closeonend:0
If I try to execute it as-is, I get a script error "Overflow 0 / 0". If I try to put the quotes around the whole thing, it tells me it couldn't find the file 0.

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

Re: V7.70 broke my (very simple) script?

Post by admin »

tgrand wrote:I think I have a very similar problem, but I couldn't find a way to successfully apply the advice from this thread. The following script worked in 7.60 but stopped working in 7.70:

Code: Select all

run "c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:"<curpath>\" /closeonend:0
If I try to execute it as-is, I get a script error "Overflow 0 / 0". If I try to put the quotes around the whole thing, it tells me it couldn't find the file 0.
Try this:

Code: Select all

::run quote("c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe") . " /command:log /path: " . quote("<curpath>\") . " /closeonend:0"

tgrand
Posts: 17
Joined: 03 Oct 2008 20:23

Re: V7.70 broke my (very simple) script?

Post by tgrand »

Thanks, that did the trick! Actually, it was really close, but I had to remove one extra space after path:

Code: Select all

::run quote("c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe") . " /command:log /path:" . quote("<curpath>\") . " /closeonend:0"
I guess I should've waited just a few more days before starting to script in XYplorer. :) By the way, it's totally awesome to be able to bind keyboard shortcuts to scripts like this! I love it.

Also, this doesn't invalidate my earlier request about getting the TortoiseSVN commands into the current folder context menu, but I must admit it's much less important now that I can do the most common TortoiseSVN actions using keyboard shortcuts. Now I would prefer to use the keyboard unless I need to do a relatively uncommon command, or the situation is such that switching to using keyboard would be slower than continuing to use the mouse/tablet.

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

Re: V7.70 broke my (very simple) script?

Post by admin »

tgrand wrote:Thanks, that did the trick! Actually, it was really close, but I had to remove one extra space after path:

Code: Select all

::run quote("c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe") . " /command:log /path:" . quote("<curpath>\") . " /closeonend:0"
I guess I should've waited just a few more days before starting to script in XYplorer. :) By the way, it's totally awesome to be able to bind keyboard shortcuts to scripts like this! I love it.

Also, this doesn't invalidate my earlier request about getting the TortoiseSVN commands into the current folder context menu, but I must admit it's much less important now that I can do the most common TortoiseSVN actions using keyboard shortcuts. Now I would prefer to use the keyboard unless I need to do a relatively uncommon command, or the situation is such that switching to using keyboard would be slower than continuing to use the mouse/tablet.
Actually I plan to add that other thing today... :)

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

Re: V7.70 broke my (very simple) script?

Post by admin »

admin wrote:Actually I plan to add that other thing today... :)
As tweak for now... in the next version do this;

Code: Select all

        [Settings]
        OEA_ListRightClickOnWhite=1

Post Reply