No commit activity in last 3 years
No release in over 3 years
ExecJS Runtime for JXA (JavaScript for Automation)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 0
~> 10.0

Runtime

>= 0
 Project Readme

ExecJS::Runtimes::JXA

ExecJS Runtime for JXA (Apple's JavaScript for Automation) using osascript -l JavaScript.

gem 'execjs-runtimes-jxa'

Usage

require 'execjs/runtimes/jxa'
ExecJS.runtime = ExecJS::Runtimes::JXA  # Set JXA as a runtime for ExecJS
ExecJS.exec('var app = Application("iTunes"); app.activate()')
ExecJS.eval('1 + 1')  # => 2

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/execjs-runtimes-jxa.

License

The gem is available as open source under the terms of the MIT License.