I'm trying to bulletproof my use of a Flash-Arduino application. It's an installation piece in a gallery that will run for several weeks and probably crash from time to time and require the gallery personnel to relaunch it with only a minimal amount of effort or expertise.
So, I'm looking for a way to shut down serproxy if it's already running so Flash can grab use of it on relaunch. I've figured out how to use fscommand to execute an AppleScript app within a Flash Projector to start serproxy, but can't figure out how to kill it without an intervening "Close Window: Terminate?" dialog from the Terminal application. Seems like it might be some sort of terminal command, but I'm ignorant of the whole unix and terminal thing. If there was a terminal command shut down serproxy, I could probably write an Applescript to do it and all would be good (at least for now).
Any ideas? Thanks!