*.jpg |
You probably know the situation: You need to open a file with a particular application that happens to be not the one that Windows has associated with that file. What do you do? You might be lucky enough to find the application listed in the "Open With..." section of the file's shell context menu -- but even then, it's a cumbersome way to work (at least a right click, then expanding a submenu, then a left click), it lacks configurability (what if you need command-line parameters?), and it's not portable (away from home, the shell's "Open With..." is defined by the host system, not by your needs). All these problems are elegantly solved by the Portable Openwith Menu (POM). |
A single click or shortcut (Ctrl+Alt+Enter) opens a context-sensitive menu that presents a set of applications to open the currently selected file(s) or scripts to apply to the file(s). The specific contents of this menu depend on (A) the currently selected file(s) and (B) your Portable File Associations (PFA) setup, so it is portable and easy to manage. |
The menu above is generated from the definitions below. It's displayed when you press Ctrl+Alt+Enter on a JPG, PNG, or GIF file. In addition to your custom shortcuts, the application associated by Windows (in this example, Windows Photo Viewer) is also displayed in the menu to give you all the choices you might need. The item in bold is the one that would open if you double-clicked on the file. |
For mouse users, the POM is just a click away: (toolbar button).
For advanced users, the POM has even more to offer:
This is trivial, but a great time saver for anyone who likes to append modified dates to file names. Add the following definition to your collection of portable file associations (Tools | Customize File Associations):
|"Append modified date" \;*>::rename "b", "*-<datem yyyymmdd>"
... and you will see the command "Append modified date" in the POM for each folder and file. Now if you select a file, say "Koeln.jpg", open the POM and select "Append modified date", it will be renamed to "Koeln-20080728.jpg" (as defined in the "*-<datem yyyymmdd>" pattern). The command also works for multiple files at once.
.
Let's say you (or your software) don't like German umlauts, but from time to time you come across one of these beasts in a filename on your system, e.g. "Köln.jpg". Now you want to quickly rename it to "Koeln.jpg". Sure, you could use File | Rename Special | Convert to ASCII, but that is a long way to go. Or you could assign a shortcut to this command. But why waste a valuable shortcut on this rarely used function and have to remember it? Ideally, you'd have a command that only shows up when you need it! That's what POM can do for you. |
Add the following definition to your collection of Portable File Associations (Tools | Customize File Associations...): |"Transmogrify Umlauts" *[äöü]*>::#131;
Well, that's it! Select a file with German umlauts in the name and open the POM (via Toolbar , or via Ctrl+Alt+Enter). This is what you'll get now:
If you select "Transmogrify Umlauts", a file named Köln.jpg will be renamed to Koeln.jpg. And remember the best part: You get this menu item only for files with German umlauts. And because it's portable, you only have to define it once to take it with you wherever you go.
Finally, let's take apart the Portable File Association (PFA) definition we've been using:
|"Transmogrify Umlauts" *[äöü]*>::#131;
Here's a wonderful little gimmick for movie fans. Add the following definition to your collection of Portable File Associations (Tools | Customize File Associations):
|"Search IMDB for '<curbase>'" *>::Open("https://www.imdb.com/find?s=tt&q=<curbase>");
... and you will see the command "Search IMDB for 'Mad Max'" if the current file is, for example, "Mad Max.jpg" or "Mad Max.avi". Click on the command and your default browser will open the IMDB website with everything about "Mad Max".