Estoy trabajando en un complemento de Photoshop en JavaScript y me gustaría poder obtener un parámetro que envío gracias a un protocolo de url personalizado cuando el usuario hace clic en un botón en una página web.
El archivo html se ve así:
<html> <body> Hey, I'm a web page ! <a id="href-custom-protocol" href="my-prot://params">Run Photoshop</a> <script> var params = 1; var linkCustomProtocol = document.getElementById('href-custom-protocol'); var url = "my-prot://" + params; linkCustomProtocol.setAttribute('href', url); </script> </body>Este es mi protocolo de URL personalizado:
reg add HKEY_CLASSES_ROOT\my-prot /t REG_SZ /d "My Description" /f reg add HKEY_CLASSES_ROOT\my-prot /v "URL Protocol" /t REG_SZ /d "" /f reg add HKEY_CLASSES_ROOT\my-prot\shell /f reg add HKEY_CLASSES_ROOT\my-prot\shell\open /f reg add HKEY_CLASSES_ROOT\my-prot\shell\open\command /t REG_SZ /dc:\Windows\photoshop.exe /fPensé en ir a buscar en el regedit los datos de la url personalizada (a través de la ruta) pero no sé cómo hacerlo.