Hi Vincent: All you have to do is make up an interesting name for the protocol part of an URI scheme (for instance, "myapp://" or "batchfile://" or "whatever://"), and just tell your operating system/browser how to open URLS with that scheme (same as "you" did for "http://" schemes, "ftp://" schemes, "mailto:" schemes, and so on).
For instance in a windows machine: https://blog.xojo.com/2016/08/16/custom-uri-schemes-on-windows/ (ignore the Visual Basic gibberish, just take the concept) Just enter the appropriate key under HKEY_CLASSES_ROOT and you're done. For instance, I registered on my machine the "phantom://" protocol, to open a phantomJS browser (in fact, phantomJS is called by a batch file with a parameter as you see below). This are the contents of the .reg file to register: [HKEY_CLASSES_ROOT\phantom] > @="URL:phantom Protocol" > "URL Protocol"="" > [HKEY_CLASSES_ROOT\phantom\shell] > [HKEY_CLASSES_ROOT\phantom\shell\open] > [HKEY_CLASSES_ROOT\phantom\shell\open\command] > @="\"E:\\Documents\\misc\\phantomJS\\phantom.bat\" \"%1\"" That way, if I link to "phantom://thisfile.txt" on the intranet (for instance), my browser (after some complaining the very first time) will actually launch "E:\Documents\misc\phantomJS\phantom.bat thisfile.txt" on this machine. You can use any protocol name you want, as far as that name is not already registered in HKEY_CLASSES_ROOT by any other app. Another handy one is "pdfprint://", that could launch AcroReader.exe with the /p option for direct printing a PDF form, etc... Hope it helps :-) And yes, *don't forget to restart your browser after any protocol registrations*, otherwise it would just ignore them and you will just get crazy figuring it out. P.S. Not tried, but apparently under certain circumstances you can also do something similar directly from a webpage instead of fiddling with the operating system: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler On Mon, May 18, 2020 at 12:07 PM After24 <vinc...@after24.net> wrote: > Hi Alex, > > No, I don't know how to launch other programs from an http link either. > But since the original Adobe method imply to load a .swf file in order to > launch an AIR application, this will no longer be available from January > 21. > > Never mind, this is not an essential feature for us so I will not spend > more > time on that. > > Thank you for your time (and congrats for the 0.9.7 Royal release !) > > Vincent > > > > -- > Sent from: http://apache-flex-users.2333346.n4.nabble.com/ >