Post-processing Open Command

Contributed by kevotheclone

Awasu 2.4 now supports the ability to run a command after a Channel Report has run. The original user request for this feature came from the user's need to edit a very large Channel Report file stored on their network and split it into multiple, smaller files; but the post-processing command is also useful for users who are using Awasu locally on their own PC. We will introduce one such useful post-processing command for local Awasu users today.

Background info

Since many of Awasu's windows are based upon embeded browser technology, when you tick the "Show Report in Awasu" check box, Awasu will attempt to open the generated Channel Report in whatever web browser you're using; Internet Explorer (by default) or Firefox.

Web browsers know how to display HTML pages, text files and are sometimes able to start other applications based upon a MIME type sent to the web browser from a web server or by examining the document content sent to the browser. But sometimes web browser don't know how to correctly display some files types and instead of trying to configure the web browser to correctly analyze document content and start the helper app. we can easily work directly with the Windows operating system to do this for us.

One useful example of this is to automatically run Google Earth with a Channel Report generated KML file, or run your favorite media player with a Channel Report generated playlist file.

We can achieve this by using the same file extension based mechanism that is used when we double click a Word document and it runs Microsoft Word and loads the document for us. Enough background info... I hear ya!

The command

cmd /c start {%REPORT-FILENAME%}
Yes that's it! That's really the whole post-processing command.

Putting it in action

  1. Create or modify a Channel Report
  2. Untick the "Show Report in Awasu" check box
  3. Save the file in a location on your PC, network or thumb drive.
    Be sure to specify the correct file extension. If you are creating a KML file for Google Earth make sure you specify a .kml file extension.
  4. Add the above post-processing command

When you run the Channel Report you should see the application associated with the file extension you specified run and load your Channel Report file in it.