XActivate is an AppleScript library to activate an application process using the specified options. This library allow you to brings only the main and key windows forward.
Also this library allow you to hide a specified application process.
Bring a specified application to the front.
Hide a specified application.