Hi [USER=126996]@PutinHuilo[/USER]
I am sure there are addins to do the job you desire yet did not research what was available.
This can be done in PS with a couple pushups (just made this up btw).
The short of the images below is that you convert a copy of the image to HSB with the Filter > Other > HSB/HSL and convert to either HSB or HSL.
Isolate the Red channel which creates a pure Hue map expressed in graytone
The use the Color Range command with the midtone selection and select the range of the Hue graytone map to create the Hue range selection.
That selection can be applied to the original image and you have your Hue range selection.
Here are the details
First here is the original image and a copied Layer
[ATTACH=full]127392[/ATTACH]
Here are the settings I used to convert to HSB using the HSB/HSL filter:
[ATTACH=full]127393[/ATTACH]
Here is the image after applying the HSB filter to the copy of the original:
[ATTACH=full]127394[/ATTACH]
There are several ways to do this yet found the most reliable way was to also add a color mixer adjustment Layer set as follows to isolate the Red (Hue) channel:
[ATTACH=full]127395[/ATTACH]
Here is the resulting Hue map in grayscale:
[ATTACH=full]127396[/ATTACH]
I merged down so the Hue graytone map was on one Layer:
[ATTACH=full]127397[/ATTACH]
How I use the Color Range Tool.
One needs to convert the Hue angle 0 to 360 to a graytone range of 255 to put in the right numbers (if you need help with this let me know):
[ATTACH=full]127398[/ATTACH]
Here is the resulting selection:
[ATTACH=full]127399[/ATTACH]
Turning off visibility of the Hue gray tone Layer shows the selected color range on the color gradient:
[ATTACH=full]127400[/ATTACH]
I believe this achieved your desired result and could be put into an Action.
John Wheeler
ADDED NOTE: Doing this process on JPEGs may be less than satisfying because JPEG compression hides its compression in the color channels so you may get some blockiness. Not a limitiation of the procedure, just that the color component of JPEGs is blocky. FYI