Package Exports
- @expo/osascript
- @expo/osascript/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@expo/osascript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
👋 Welcome to
@expo/osascript
Tools for running osascripts in Node.
Example
ccheever@Charless-MacBook-Air:~/projects/osascript$nesh -y
.Node v4.1.0
Type .help for more information
nesh*> .require .
osascript = require("/Users/ccheever/projects/osascript")
nesh*> yield osascript.execAsync('tell app "System Events" to count processes whose name is "Simulator"')
'1\n'
nesh*> yield osascript.spawnAsync('quit app "Safari"')
0
nesh*>