#!/bin/bash
my_string=`/usr/bin/sw_vers | grep ProductVersion`
dir=$(dirname "$0")
#echo $my_string;

test_4=': 4.';
if [[ "$my_string" == *"$test_4"* ]]
then
	exec "${dir}"/Messages2PDF "$@"
fi
test_4=': 6.';
if [[ "$my_string" == *"$test_4"* ]]
then
	exec "${dir}"/Messages2PDF-6X "$@"
fi
test_4=': 5.';
if [[ "$my_string" == *"$test_4"* ]]
then
	exec "${dir}"/Messages2PDF-6X "$@"
fi
test_4=': 7.';
if [[ "$my_string" == *"$test_4"* ]]
then
	exec "${dir}"/Messages2PDF-7X "$@"
fi
test_4=': 8.';
if [[ "$my_string" == *"$test_4"* ]]
then
	exec "${dir}"/Messages2PDF-8X "$@"
fi

