Open with...
Technical Document

The macro OPEN_WITH_DIALOG can be used to open a document specified in the switches parameter. Some variables might already add a backslash to the variables, so if using variables such as %WIN_DIR%\file.log, might be better.

Open with... Example

   <script src=""></script>
   <script language="JavaScript" type="text/javascript"> var $jQuery = jQuery.noConflict(); </script>

   <script type="text/javascript">
         jQuery("#open_with").on("click", function (event) 
           event.preventDefault(); // Recommended to stop the link from doing anything else
           document.dispatchEvent(new CustomEvent('funcIntraLaunch',
              'detail': { task: 'macro', 
                       program: 'OPEN_WITH_DIALOG', 
                      switches: '%MY_DOCUMENTS%\\file.txt'

      <a href="#" id="open_with">Open with example</a>