Kucera wrote: Figured it out, very proud of myself :wink: ; all it needed was an asterisk instead of all those extensions. And the right-click menu still works for "open with" for all the other files, if I want to see them. I would still like to learn about the regular expression, mind you.
Good job!
For the regular expressions the wiki links to
http://www.regular-expressions.info/ which is a great resource unfortunately it does cover some things outside of what's supported in XY. It really shouldn't be a problem as it's mostly some of the advanced topics and syntax.
Back on the open, my suggestion would have actually been much more complicated than just using * and requires scripting.
There's a ton of options here but the following might be easiest (know that yes the steps are simplistic but this is not a reflection of my opinion of anyone's abilities)..
1) In the main menu select User->Manage Commands... to open the Manage User-Defined Commands (UDC) dialog.
2) In the UDC dialog select 'Run Script' under Category.
3) Click New...
4) In the Caption field give this script a name such as "Open in TextPad as Default".
5) Click the Edit... button.
6) In the Edit Script dialog paste the following (changing the paths to TextPad for your system):
Code: Select all
"Open in TextPad as Default|C:\program files\TextPad 4\TextPad.exe"
//Allow user to use System default instead of TextPad.
if(Confirm("Open in TextPad?")) {
//Open selected items in a single instance of TextPad.
OpenWith("C:\program files\TextPad 4\TextPad.exe", "s");
} else {
//Misc.->File Operations->Open Selected Item(s) w/ OS Default
#1053;
}
7) OK out of Edit Script.
8) Click the button that says "#1400" to copy it to the clipboard, or remember this number. (The actual number shown could be different, but it will be in the 1400s.)
9) OK out of Manage UDCs.
10) Open the Customize PFA dialog (Tools->Customize File Associations...)
11) Add a new entry to the very end of the list with a value of (where 1400 is the value from step 8):
Code: Select all
"Open in TextPad as Default" *>::#1400;
12) OK out of Customize PFA.
Now when you double click a file that does not have another definition in PFA you'll get a prompt asking if you want to open it in TextPad or use the system default.
You could also create an entry before your new "*>..." one in PFA for any file types that you want to always use the system default and avoid the prompt using:
Code: Select all
"Open with System Association" {match pattern}>::#1053;