Read Photoshop Color Table via Plug-In (UXP Scripting)
Hello,
Is there a way to read the color table swatches via scripting? I previously had a method working in ExtendScript, but I am updating my plug-in for UXP.
What I am looking for as a return is an array of colors from the color table. I've found a way to read that data via script, but it first requires the user to manually add one color to the table, which is a hacky user experience. After they add the color manually, the script can return the list of all colors including the manually added color, which can be removed from the array and provide the data that I need. Does anyone have any ideas or advice on how to get this working without that manual step?
