As the name implies, this script inverts the selected layer (i.e., deselects the selected layers, and selects the unselected layers). It's hard to believe this isn't already a native Photoshop command!
To download this script, right-click (Ctrl-click on the Mac) on the appropriate version below, and choose "Save Target As".
Invert Selected Layers
Version: 0.2.0 (August 26, 2016)
Requires: Photoshop CS3+
Download the script(s), and copy it into your "
Adobe Photoshop ##/Presets/Scripts" folder.
After restarting Photoshop, the script should appear in themenu.
Tip: Did you know that you can use the Ctrl/Cmd+Alt/Opt+Shift+K) to assign keyboard shortcuts to your scripts? You can also record scripts within actions and then assign function keys to the actions.command (
If you use this script and find it useful, please consider supporting this site. Also, if need a custom script developed, contact me with the details and I'd be happy to provide you with a free estimate.