Page 1 of 1

Open command broken (sometimes)

Posted: 07 Sep 2015 18:55
by Stef123
Some file types won't open when I trigger them from a CTB-dropdown like this:

Code: Select all

open """<xypath>\..\MyHelp\color tools.html""";
I finally tracked it down to the following POM entry:

Code: Select all

"System default" html;htm;url>#1053;
When I disable this (top of list) entry, the file will open with the next browser in my POM list.

Double-clicking directly in the list always works, in other words, the top line default only fails when triggered from my CTB dropdown.

Re: Open command broken (sometimes)

Posted: 07 Sep 2015 19:24
by admin
You have these two lines in one list? Can you post the whole button code?

Re: Open command broken (sometimes)

Posted: 07 Sep 2015 19:27
by Stef123
admin wrote:You have these two lines in one list?
No, the second line is my POM entry that I have to disable for the files to open from this dropdown:

Code: Select all

"ColorPaste Alt P in red" <xypath>\..\ColorPaste\PasteColorX64.exe 
" • Settings" open "<xypath>\..\ColorPaste\settings.ini"; 
" • Help" open """<xypath>\..\MyHelp\color tools.html""";
The whole button code is a long list of similar commands.

Re: Open command broken (sometimes)

Posted: 07 Sep 2015 19:35
by admin
OK, what do you want to happen? Or, why do you define "System default" html;htm;url>#1053; when you don't want it to happen. Sorry, I might be overworked...

Re: Open command broken (sometimes)

Posted: 08 Sep 2015 06:05
by Stef123
admin wrote:..why do you define "System default" html;htm;url>#1053; when you don't want it to happen.
But I want it to happen. It should use the system default. And it does when I dbl-click the list, but not from the CTB dropdown.

Wait - it works now :shock: - I could not get it to work yesterday despite restarts and rebooting machines :veryconfused:

Anyway, forget it, if it happens again on other machines I'll report back.

Re: Open command broken (sometimes)

Posted: 09 Sep 2015 15:10
by Stef123
:evil: It's back, same problem. Another one of those tricky, elusive bugs it seems.
Starting over (XY + machine) makes no difference. It can only be solved by disabling my #1053; line in POM - see above. No other way to open files from a CTB-dropdown.

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 16:54
by Stef123
This is driving me nuts - the more I try to track it down, the weirder it gets.
Run a fresh config and set up PFA:

Code: Select all

jpg> #1003;
Prove it works by dbl-clicking D:\Image.jpg
Now toggle D:\Image.jpg as a favorite. Call up this favorite. It won't open.

Set up more PFAs:

Code: Select all

"System default" html;htm;url>#1053;
"PaleMoon" html;htm;url>..\PaleMoon\Palemoon-Portable.exe
Once again, try it by dbl-cliking D:\Webpage.html.
Now toggle Webpage.html as favorite, call it up. Won't work unless you disable "System default" #1053
Sometimes, however, when I first successfully open the above-mentioned Image.jpg via its above-mentioned PFA (#1003), THEN clicking the Webpage.html favorite, it will open Image.jpg instead. :shock: :shock:

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 17:32
by admin
You need to tick this:

Configuration | Controls and More | Miscellaneous | Open favorite files directly

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 17:49
by Stef123
Oops. I assumed it's ON by default in fresh;
So this is not related to my original problem. The down-side of bug-tracking with fresh;

Any ideas what I could try in my own ini-config to get back functional PFA - #ID; -commands when triggered other than directly in the list? The second issue - getting to see the last opened Image-file even though I called up an html-file - seems to point towards some kind of caching problem. I cannot reproduce it every time, but once it happens, I can't get rid of it.

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 17:54
by admin
I'm confused now. Which is the "original problem" that is still there?

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 18:59
by Stef123
See my very first post
1) An open-command from a CTB-dropdown does not open the file.
2) If - and only if - the associated first entry in PFA for that file type happens to be #1003; or #1053;

What it does instead
- it will not open the file at all - or
- it will open the file that was last opened from within XY, even if completely unrelated.

Example:
PFA

Code: Select all

jpg> #1003;
html> #1053;
CTB dropdown =

Code: Select all

"open jpg" open """D:\Image.jpg""";
"Open html" open """D:\Webpage.html""";
Only solution that always works: Disable the PFA entries. The files in question will then open with the next associated PFA-entry for their type.

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 19:25
by Stef123
Don't know if this is related: When I fire #1003; on a jpg, XY shows me the file only briefly, then goes up one file.

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 19:27
by admin
Stef123 wrote:Don't know if this is related: When I fire #1003; on a jpg, XY shows me the file only briefly, then goes up one file.
Yep, I saw this too and fixed it a minute ago.

It's not related.

Re: Open command broken (sometimes)

Posted: 11 Sep 2015 19:42
by admin
Stef123 wrote:See my very first post
1) An open-command from a CTB-dropdown does not open the file.
2) If - and only if - the associated first entry in PFA for that file type happens to be #1003; or #1053;

What it does instead
- it will not open the file at all - or
- it will open the file that was last opened from within XY, even if completely unrelated.

Example:
PFA

Code: Select all

jpg> #1003;
html> #1053;
CTB dropdown =

Code: Select all

"open jpg" open """D:\Image.jpg""";
"Open html" open """D:\Webpage.html""";
Only solution that always works: Disable the PFA entries. The files in question will then open with the next associated PFA-entry for their type.
Cannot reproduce. File opens always. Tried also with fresh.

:?

Re: Open command broken (sometimes)

Posted: 13 Sep 2015 15:34
by Stef123
admin wrote: Cannot reproduce. File opens always. Tried also with fresh.
Sigh ... :veryconfused: - and I can reproduce it each and every time on every machine. With fresh.
Not a showstopper, will have to rewrite all my dropdowns to specify an open with -app for each entry. Oh well ....