How to differentiate between applications with the same name in applescripts
You can use direct path to the application inside Your Apple Script.
This will looke like:

set p to "/Applications/Safari.app"
tell application p to activate


Here's the link about AppleScript and POSIX paths