AppleScript to test if application is running
tell application "System Events" to (name of processes) contains "iTunes"
By creator type, in case it might have a version # appended:
tell application "System Events" to (creator type of processes) contains "InDn"
Grab creator type dynamically like so:
tell application "Finder" to creator type of (selection as alias)
From http://applescriptsourcebook.com/viewtopic.php?pid=46830