<p></p>
<p dir="auto">I tried registering this script as a <code class="notranslate">josm:</code> protocol handler on a desktop with JOSM remote control running, seems to work:</p>
<div class="highlight highlight-source-perl" dir="auto"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>!/usr/bin/perl</span>

<span class="pl-k">use</span> LWP::Simple;
<span class="pl-k">my</span> <span class="pl-smi">$url</span> = <span class="pl-smi">$ARGV</span>[0];
<span class="pl-smi">$url</span> =~ <span class="pl-sr"><span class="pl-pds"><span class="pl-c1">s</span>{</span>^josm:<span class="pl-pds">}</span></span><span class="pl-sr"><span class="pl-pds">{</span>http://127.0.0.1:8111<span class="pl-pds">}</span></span>;
get <span class="pl-smi">$url</span>;</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5351#issuecomment-2502680015">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOYNNIUNYZM3S2HYZD2CVARNAVCNFSM6AAAAABSJVSPVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSGY4DAMBRGU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJZP5SK2ZONBZX7CPL2CVARNA5CNFSM6AAAAABSJVSPVOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUVFPO46.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5351/c2502680015</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5351#issuecomment-2502680015",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5351#issuecomment-2502680015",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>