Home > XModules >

Requirements

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

Download

Version 1.0.1 -- 2020-02-05

Dependencies

XActivate

Activate event send to an application form AppleScript bring all windows of the application process forward. 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.
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

History

  • 1.0.1 -- 2020-02-05
    • OpenHelpBook.scptd is used to display a help book instead of HelpBook.osax.
  • 1.0 -- 2018-07-26
    • First release.