New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nodeautomation

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeautomation

An Apple event (“AppleScript”) bridge to control desktop apps on macOS.

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

#nodeautomation

NodeJS ↔ Apple event ('AppleScript') bridge (experimental)

About

NodeAutomation is a Node.js module that allows 'AppleScriptable' applications to be controlled directly from JavaScript.

For example, to get the value of the first paragraph of the document named 'README' in TextEdit:

app('TextEdit').documents.named('README').paragraphs[0].get()

This is equivalent to the AppleScript statement:

tell application "TextEdit" to get paragraph 1 of document "README"

Or to create a new "Hello World!" document in TextEdit:

app('TextEdit').make({new: k.document, 
                      withProperties: {text: "Hello World!"}})

Install

$ npm install nodeautomation

Usage

$ node
> require('nodeautomation/repl');
> const finder = app('Finder');
> finder.home();
app('Finder').startupDisk.folders.named('Users').folders.named('jsmith')

Documentation

Documentation is preliminary, being a quick and dirty translation of the original appscript manual. Documentation is included in the nodeautomation package and online:

https://hhas.github.io/nodeautomation/

Tools

ASDictionary and ASTranslate tools:

https://sourceforge.net/projects/appscript/files/

Status

Caution: This is an experimental release. There will be bugs and rough edges.

E&OE. No warranty given. Use at own risk. Etc.

See also: https://appscript.sourceforge.io/status.html

Dependencies

Known issues

Depends on some deprecated CoreServices/Cocoa APIs, for which macOS may or may not provide replacements.

WARNING: The libxmljs2 dependency is no longer maintained and insecure.

TO DO: Switch to libxmljs which appears to be actively maintained again.

Keywords

applescript

FAQs

Package last updated on 31 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts