{"id":18523702,"url":"https://github.com/sonicdoe/applescript-result","last_synced_at":"2025-05-14T19:10:43.407Z","repository":{"id":57182857,"uuid":"137208339","full_name":"sonicdoe/applescript-result","owner":"sonicdoe","description":"Convert an AppleScript result to its equivalent JavaScript representation","archived":false,"fork":false,"pushed_at":"2018-06-17T10:01:34.000Z","size":50,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T17:54:07.994Z","etag":null,"topics":["applescript","javascript","mac","macos","nodejs","osascript","parser"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonicdoe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-13T11:47:56.000Z","updated_at":"2025-03-08T00:21:43.000Z","dependencies_parsed_at":"2022-09-11T23:41:53.460Z","dependency_job_id":null,"html_url":"https://github.com/sonicdoe/applescript-result","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonicdoe%2Fapplescript-result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonicdoe%2Fapplescript-result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonicdoe%2Fapplescript-result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonicdoe%2Fapplescript-result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonicdoe","download_url":"https://codeload.github.com/sonicdoe/applescript-result/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254209859,"owners_count":22032897,"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","javascript","mac","macos","nodejs","osascript","parser"],"created_at":"2024-11-06T17:37:12.119Z","updated_at":"2025-05-14T19:10:40.079Z","avatar_url":"https://github.com/sonicdoe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# applescript-result [![Build Status](https://img.shields.io/travis/sonicdoe/applescript-result.svg)](https://travis-ci.org/sonicdoe/applescript-result)\n\n\u003e Convert an AppleScript result to its equivalent JavaScript representation\n\n## Installation\n\n```console\n$ npm install applescript-result\n```\n\n## Usage\n\n```javascript\nconst applescriptResult = require('applescript-result')\n\napplescriptResult('{1, 2, 3}')\n// =\u003e [ 1, 2, 3 ]\n\napplescriptResult('{product:\"pen\", price:2.34}')\n// =\u003e { product: 'pen', price: 2.34 }\n```\n\n## Supported data types\n\n- [`boolean`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCIBBGG) → Boolean\n- [`integer`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCHBDCJ) → Number\n- [`real`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCJECEC) → Number\n- [`text`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCIAHJF) → String\n- [`list`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCDBHIE) → Array\n- [`record`](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCDGEAH) → Object\n\n## Related\n\n- [applescript](https://github.com/TooTallNate/node-applescript): Run AppleScript and get the result as a native JavaScript data type\n- [run-applescript](https://github.com/sindresorhus/run-applescript): Run AppleScript and get the result as a string\n- [node-osascript](https://github.com/FWeinb/node-osascript): Run AppleScript and process the result using [PEG.js](https://pegjs.org)\n- [run-jxa](https://github.com/sindresorhus/run-jxa): Run JXA (JavaScript for Automation) code and get the result\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonicdoe%2Fapplescript-result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonicdoe%2Fapplescript-result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonicdoe%2Fapplescript-result/lists"}