{"id":26388885,"url":"https://github.com/hhas/nodeautomation","last_synced_at":"2025-03-17T09:15:57.000Z","repository":{"id":57687855,"uuid":"276187200","full_name":"hhas/nodeautomation","owner":"hhas","description":"macOS Apple event (“AppleScript”) bridge for Node.js","archived":false,"fork":false,"pushed_at":"2023-02-25T17:26:02.000Z","size":936,"stargazers_count":30,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T04:04:27.809Z","etag":null,"topics":["applescript","automation","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-30T19:13:07.000Z","updated_at":"2024-12-20T07:35:34.000Z","dependencies_parsed_at":"2022-08-25T15:40:08.165Z","dependency_job_id":null,"html_url":"https://github.com/hhas/nodeautomation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fnodeautomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fnodeautomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fnodeautomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhas%2Fnodeautomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhas","download_url":"https://codeload.github.com/hhas/nodeautomation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244006395,"owners_count":20382443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["applescript","automation","javascript"],"created_at":"2025-03-17T09:15:56.264Z","updated_at":"2025-03-17T09:15:56.984Z","avatar_url":"https://github.com/hhas.png","language":"JavaScript","readme":"# README\n\nNodeAutomation is a Node.js module that allows 'AppleScriptable' applications \nto be controlled directly from JavaScript.\n\nFor example, to get the value of the first paragraph of the document named\n'README' in TextEdit:\n\n    app('TextEdit').documents.named('README').paragraphs[0].get()\n\nThis is equivalent to the AppleScript statement:\n\n    tell application \"TextEdit\" to get paragraph 1 of document \"README\"\n\n\nOr to create a new \"Hello World!\" document in TextEdit:\n\n    app('TextEdit').make({new: k.document, \n                          withProperties: {text: \"Hello World!\"}})\n\n______________________________________________________________________________\n\nDependencies:\n\n- objc -- https://github.com/hhas/objc (development fork)\n- libxmljs2\n- ffi-napi\n- ref-napi\n\n______________________________________________________________________________\n\nDocumentation:\n\nDocumentation is preliminary, being a quick and dirty translation of the \noriginal appscript manual. Documentation is included in the nodeautomation \npackage and online:\n\nhttps://hhas.github.io/nodeautomation/\n\n\nASDictionary and ASTranslate tools:\n\nhttps://sourceforge.net/projects/appscript/files/\n\n______________________________________________________________________________\n\nCaution: This is an alpha release. There will be bugs and rough edges.\n\nE\u0026OE. No warranty given. Use at own risk. Etc.\n\nSee also: http://appscript.sourceforge.net/status.html\n\n______________________________________________________________________________\n\nTest:\n\n    $ node\n    \u003e require('nodeautomation/repl')\n    \u003e const finder = app('Finder')\n    \u003e finder.home()\n    app('Finder').startupDisk.folders.named('Users').folders.named('jsmith')\n\n______________________________________________________________________________\n\nKnown issues:\n\nRelies on several now-deprecated CoreServices/Cocoa functions/methods for\nwhich macOS does not provide replacements.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhas%2Fnodeautomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhas%2Fnodeautomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhas%2Fnodeautomation/lists"}