From the inimitable Daring Fireball, how to see if an application is running with AppleScript:

tell application \"System Events\"
    count (every process whose name is \"BBEdit\")
end tell

I modified that into tell application "System Events" to set syncpRunning to count (every process whose name is "Syncplicity") for my purposes.