
#!/bin/bash
appinfo=$(ps -ef|grep '/Applications/PrinterClient.app/Contents/MacOS/PrinterClient'|wc -l)
appinfoma=$(ps -ef|grep '/private/var/isectools /Applications/PrinterClient.app/Contents/MacOS/PrinterClient'|wc -l)

if [ $appinfo == 1 ]
then
sudo -u $USER open /Applications/PrinterClient.app
elif [ $appinfoma == 2 ] && [ $appinfo == 2 ] 
then
sudo -u $USER open /Applications/PrinterClient.app
fi

