XActivate Reference

Synopsis

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.

Example

use scripting additions
use XActivate : script "XActivate"

tell XActivate
-- default behavior is bringing one window to forntmost.
do("com.apple.Safari")

delay 1
-- bringing all windows to frontmost by specifing "all_windows" parameter.
do({id:"com.apple.finder", all_windows:true})

delay 1
hide("com.apple.finder")
end tell

Handlers

do

Bring a specified application to the front.

hide

Hide a specified application.