Home > XModules >


  • OS X 10.9 or later
    • Developed and tested on OS X 10.11.6.
  • HelpBook.osax


Version 1.0 -- 2018-07-26


In normal AppleScript, sending activate command to an application process causes to bring all windows forwoard. XActivate is an AppleScript library to activate an application process using the specified options, for example bringing only the main and key windows forward.

Also this library allow you to hide a specified application process.

NSRunningApplication class of the Cocoa is used inside this library.

use scripting additions
use XActivate : script "XActivate"

tell XActivate
-- default behavior is bringing one window to forntmost.

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

delay 1
end tell


  • 1.0 -- 2018-07-26
    • First release.