Page 1 of 1
V7.70 broke my (very simple) script?
Posted: 20 Oct 2008 10:18
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
Re: V7.70 broke my (very simple) script?
Posted: 20 Oct 2008 10:22
by admin
Do it like this:
Code: Select all
::run "C:\Corel\Draw70\programs\photopnt.exe <curitem>";
(< is interpreted as comparison operator otherwise)
Re: V7.70 broke my (very simple) script?
Posted: 20 Oct 2008 10:37
by petersboulton
Fantastic. Thanks! (Simple really.

)
Pete
Re: V7.70 broke my (very simple) script?
Posted: 23 Oct 2008 07:39
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.
Re: V7.70 broke my (very simple) script?
Posted: 23 Oct 2008 07:53
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"
Re: V7.70 broke my (very simple) script?
Posted: 23 Oct 2008 08:16
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.
Re: V7.70 broke my (very simple) script?
Posted: 23 Oct 2008 08:18
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...

Re: V7.70 broke my (very simple) script?
Posted: 23 Oct 2008 10:49
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