Home > XModules >

Requirements

  • OS X 10.10 or later
    • Developed and tested on macOS 10.14.6

Download

Version 1.0 -- 2021-04-08

Applications

XAppProcess

XAppProcess allows you to send key events to the application process specified with a bundle identifier.

“keystroke” and “key code” commands of “System Events” can send key events only to the frontmost application process. But XAppProcess can send key events to any background processes.

Also following oprerations to application processes are provided:

  • activate an application process with detail options e.g. only one window is bring to the front
  • hide an application process without using “System Events”
use XAppProcess : script "XAppProcess"

set app_id to "com.apple.TextEdit"

tell XAppProcess's make_with({id:app_id, allow_launching:true})
post_keyevent("N", {"command"})
activate_with({all_windows:false})
delay 1
log hide()
log identifier() -- "com.apple.TextEdit"
log pid()
delay 0.1
log is_active() -- true
log is_hidden() --false
end tell

return missing value

History

  • 1.0 -- 2021-04-08
    • First Release