I use
ps -axww | /usr/bin/grep '[/]APPNAME'| awk '{print $1}' | head -1to get the pid. Is there a better way?
[Editor's note: I downloaded and tested this script, and it does exactly what it states - you get a list of all running processes, click the one you wish to change, set the priority level you want, and say OK.]

