code: private static boolean viewSVG(File file) throws IOException {
  		if ("Mac OS X".equals(System.getProperty("os.name"))) {
  			Runtime.getRuntime().exec(
  					String.format("open -a /Applications/Safari.app %s",
  							file.getAbsoluteFile()));
  			return true;
  		}
  		return false;
  	}
docs: main