I have an AppleScript that is loaded whenever either Mail or TextEdit are running. Unfortunately, because the script has calls to both applications–even though the code does not branch to both application calls–it still activates the unwanted application. I’ve tried to insulate the unwanted application calls by writing them into a loaded object construct, but still, when the entire script is activated, both applications activate. Anyone have any insight on how to keep this from happening? I was thinking that I might activate the applications using unix commands or something.