open_file_commands: some extensions do not open?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Biff
Posts: 1154
Joined: Mon May 25, 2015 7:09 am

open_file_commands: some extensions do not open?

Post by Biff »

Files with these extensions do not open in their programs in Everything: *.odt,*.ott,*.docx,*.doc,*.rtf

Code: Select all

{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot";*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"}
The other extensions work (in open_file_commands):

Code: Select all

[{"filter"="*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv","command"="$exec(\"J:\\PortableApps\\PortableApps\\MPC-HCPortable\\MPC-HCPortable.exe\" \"%1\")"}{"filter"="*.txt;*.ini","command"="$exec(\"J:\\Programme\\Notepad++\\notepad++.exe\" \"%1\")"}{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot;*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"}{"filter"="*.ani;*.bmp;*.gif;*.ico;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psd;*.tga;*.tif;*.tiff;*.wmf;*.cr2","command"="$exec(\"J:\\Programme\\XnViewMp\\xnviewmp.exe\" \"%1\")"}{"filter"="*.ods","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"%1\")"}{"filter"="*.pdf","command"="$exec(\"J:\\Programme\\PDF-XChange Editor Plus\\PDF-XChange Editor.exe\" \"%1\")"}{"filter"="*.scrivx","command"="$exec(\"C:\\Program Files\\Scrivener3\\Scrivener.exe\" \"%1\")"}{"filter"="*.7z;*.ace;*.arj;*.bz2;*.cab;*.gz;*.gzip;*.r00;*.r01;*.r02;*.r03;*.r04;*.r05;*.r06;*.r07;*.r08;*.r09;*.r10;*.r11;*.r12;*.r13;*.r14;*.r15;*.r16;*.r17;*.r18;*.r19;*.r20;*.r21;*.r22;*.r23;*.r24;*.r25;*.r26;*.r27;*.r28;*.r29;*.rar;*.tar;*.tgz;*.z;*.zip","command"="$exec(\"J:\\Programme\\WinRar\\WinRAR Portable.exe\" \"%1\")"}{"filter"="*.html;*.htm;*.url","command"="$exec(\"J:\\PortableApps\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe\" \"%1\")"}]
What is the mistake?
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: open_file_commands: some extensions do not open?

Post by void »

Missing the enclosing [ ] brackets?

Please try:

[{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot";*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"}]

(added [ to the start and ] to the end)
Biff
Posts: 1154
Joined: Mon May 25, 2015 7:09 am

Re: open_file_commands: some extensions do not open?

Post by Biff »

Ah, sorry for misleading:

This is the entire code I use in open_file_commands:

Code: Select all

[{"filter"="*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv","command"="$exec(\"J:\\PortableApps\\PortableApps\\MPC-HCPortable\\MPC-HCPortable.exe\" \"%1\")"}{"filter"="*.txt;*.ini","command"="$exec(\"J:\\Programme\\Notepad++\\notepad++.exe\" \"%1\")"}{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot;*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"}{"filter"="*.ani;*.bmp;*.gif;*.ico;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psd;*.tga;*.tif;*.tiff;*.wmf;*.cr2","command"="$exec(\"J:\\Programme\\XnViewMp\\xnviewmp.exe\" \"%1\")"}{"filter"="*.ods","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"%1\")"}{"filter"="*.pdf","command"="$exec(\"J:\\Programme\\PDF-XChange Editor Plus\\PDF-XChange Editor.exe\" \"%1\")"}{"filter"="*.scrivx","command"="$exec(\"C:\\Program Files\\Scrivener3\\Scrivener.exe\" \"%1\")"}{"filter"="*.7z;*.ace;*.arj;*.bz2;*.cab;*.gz;*.gzip;*.r00;*.r01;*.r02;*.r03;*.r04;*.r05;*.r06;*.r07;*.r08;*.r09;*.r10;*.r11;*.r12;*.r13;*.r14;*.r15;*.r16;*.r17;*.r18;*.r19;*.r20;*.r21;*.r22;*.r23;*.r24;*.r25;*.r26;*.r27;*.r28;*.r29;*.rar;*.tar;*.tgz;*.z;*.zip","command"="$exec(\"J:\\Programme\\WinRar\\WinRAR Portable.exe\" \"%1\")"}{"filter"="*.html;*.htm;*.mht;*.url","command"="$exec(\"J:\\PortableApps\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe\" \"%1\")"}]
And this code, part of that code above, is what does not work, respectively the extensions do not work here:

Code: Select all

{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot";*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"}
So this last code is contained in the first code. so the [ at the beginning and ] at the end are already available. Maybe there is anything else causing the issue?
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: open_file_commands: some extensions do not open?

Post by void »

Use a comma (,) to separate the {} objects:

Code: Select all

[{"filter"="*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv","command"="$exec(\"J:\\PortableApps\\PortableApps\\MPC-HCPortable\\MPC-HCPortable.exe\" \"%1\")"},{"filter"="*.txt;*.ini","command"="$exec(\"J:\\Programme\\Notepad++\\notepad++.exe\" \"%1\")"},{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot;*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"},{"filter"="*.ani;*.bmp;*.gif;*.ico;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psd;*.tga;*.tif;*.tiff;*.wmf;*.cr2","command"="$exec(\"J:\\Programme\\XnViewMp\\xnviewmp.exe\" \"%1\")"},{"filter"="*.ods","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"%1\")"},{"filter"="*.pdf","command"="$exec(\"J:\\Programme\\PDF-XChange Editor Plus\\PDF-XChange Editor.exe\" \"%1\")"},{"filter"="*.scrivx","command"="$exec(\"C:\\Program Files\\Scrivener3\\Scrivener.exe\" \"%1\")"},{"filter"="*.7z;*.ace;*.arj;*.bz2;*.cab;*.gz;*.gzip;*.r00;*.r01;*.r02;*.r03;*.r04;*.r05;*.r06;*.r07;*.r08;*.r09;*.r10;*.r11;*.r12;*.r13;*.r14;*.r15;*.r16;*.r17;*.r18;*.r19;*.r20;*.r21;*.r22;*.r23;*.r24;*.r25;*.r26;*.r27;*.r28;*.r29;*.rar;*.tar;*.tgz;*.z;*.zip","command"="$exec(\"J:\\Programme\\WinRar\\WinRAR Portable.exe\" \"%1\")"},{"filter"="*.html;*.htm;*.mht;*.url","command"="$exec(\"J:\\PortableApps\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe\" \"%1\")"}]
Biff
Posts: 1154
Joined: Mon May 25, 2015 7:09 am

Re: open_file_commands: some extensions do not open?

Post by Biff »

It is now like this with commas, but nothing happens when clicking an odt file, or docx, etc.:

Code: Select all

[{"filter"="*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv","command"="$exec(\"J:\\PortableApps\\PortableApps\\MPC-HCPortable\\MPC-HCPortable.exe\" \"%1\")"},{"filter"="*.txt;*.ini","command"="$exec(\"J:\\Programme\\Notepad++\\notepad++.exe\" \"%1\")"},{"filter"="*.odt;*.ott;*.docx;*.doxt;*.doc;*.dot;*.rtf,"command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"},{"filter"="*.ani;*.bmp;*.gif;*.ico;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psd;*.tga;*.tif;*.tiff;*.wmf;*.cr2","command"="$exec(\"J:\\Programme\\XnViewMp\\xnviewmp.exe\" \"%1\")"},{"filter"="*.ods","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"%1\")"},{"filter"="*.pdf","command"="$exec(\"J:\\Programme\\PDF-XChange Editor Plus\\PDF-XChange Editor.exe\" \"%1\")"},{"filter"="*.scrivx","command"="$exec(\"C:\\Program Files\\Scrivener3\\Scrivener.exe\" \"%1\")"},{"filter"="*.7z;*.ace;*.arj;*.bz2;*.cab;*.gz;*.gzip;*.r00;*.r01;*.r02;*.r03;*.r04;*.r05;*.r06;*.r07;*.r08;*.r09;*.r10;*.r11;*.r12;*.r13;*.r14;*.r15;*.r16;*.r17;*.r18;*.r19;*.r20;*.r21;*.r22;*.r23;*.r24;*.r25;*.r26;*.r27;*.r28;*.r29;*.rar;*.tar;*.tgz;*.z;*.zip","command"="$exec(\"J:\\Programme\\WinRar\\WinRAR Portable.exe\" \"%1\")"},{"filter"="*.html;*.htm;*.mht;*.url","command"="$exec(\"J:\\PortableApps\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe\" \"%1\")"}]
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: open_file_commands: some extensions do not open?

Post by tuska »

Code: Select all

[{"filter"="*.3g2;*.3gp;*.3gp2;*.3gpp;*.amr;*.amv;*.asf;*.avi;*.bdmv;*.bik;*.d2v;*.divx;*.drc;*.dsa;*.dsm;*.dss;*.dsv;*.evo;*.f4v;*.flc;*.fli;*.flic;*.flv;*.hdmov;*.ifo;*.ivf;*.m1v;*.m2p;*.m2t;*.m2ts;*.m2v;*.m4b;*.m4p;*.m4v;*.mkv;*.mp2v;*.mp4;*.mp4v;*.mpe;*.mpeg;*.mpg;*.mpls;*.mpv2;*.mpv4;*.mov;*.mts;*.ogm;*.ogv;*.pss;*.pva;*.qt;*.ram;*.ratdvd;*.rm;*.rmm;*.rmvb;*.roq;*.rpm;*.smil;*.smk;*.swf;*.tp;*.tpr;*.ts;*.vob;*.vp6;*.webm;*.wm;*.wmp;*.wmv","command"="$exec(\"J:\\PortableApps\\PortableApps\\MPC-HCPortable\\MPC-HCPortable.exe\" \"%1\")"},{"filter"="*.txt;*.ini","command"="$exec(\"J:\\Programme\\Notepad++\\notepad++.exe\" \"%1\")"},{"filter"="*.odt;*.ott;*.docx;*.dotx;*.doc;*.dot;*.rtf","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeWriterPortable.exe\" \"%1\")"},{"filter"="*.ani;*.bmp;*.gif;*.ico;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psd;*.tga;*.tif;*.tiff;*.wmf;*.cr2","command"="$exec(\"J:\\Programme\\XnViewMp\\xnviewmp.exe\" \"%1\")"},{"filter"="*.ods","command"="$exec(\"J:\\PortableApps\\PortableApps\\LibreOfficePortable\\LibreOfficeCalcPortable.exe\" \"%1\")"},{"filter"="*.pdf","command"="$exec(\"J:\\Programme\\PDF-XChange Editor Plus\\PDF-XChange Editor.exe\" \"%1\")"},{"filter"="*.scrivx","command"="$exec(\"C:\\Program Files\\Scrivener3\\Scrivener.exe\" \"%1\")"},{"filter"="*.7z;*.ace;*.arj;*.bz2;*.cab;*.gz;*.gzip;*.r00;*.r01;*.r02;*.r03;*.r04;*.r05;*.r06;*.r07;*.r08;*.r09;*.r10;*.r11;*.r12;*.r13;*.r14;*.r15;*.r16;*.r17;*.r18;*.r19;*.r20;*.r21;*.r22;*.r23;*.r24;*.r25;*.r26;*.r27;*.r28;*.r29;*.rar;*.tar;*.tgz;*.z;*.zip","command"="$exec(\"J:\\Programme\\WinRar\\WinRAR Portable.exe\" \"%1\")"},{"filter"="*.html;*.htm;*.mht;*.url","command"="$exec(\"J:\\PortableApps\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe\" \"%1\")"}]
*.doxt -> corrected to -> *.dotx
A closing inverted comma was added after the enumeration of the file extensions -> *.rtf"
Biff
Posts: 1154
Joined: Mon May 25, 2015 7:09 am

Re: open_file_commands: some extensions do not open?

Post by Biff »

Ah, yes, works now!

Thank you very much!
Post Reply