{"id":20134235,"url":"https://github.com/japlscript/japlse","last_synced_at":"2026-05-15T21:04:23.463Z","repository":{"id":57727418,"uuid":"410330175","full_name":"japlscript/japlse","owner":"japlscript","description":"Java API for AppleScript System Events","archived":false,"fork":false,"pushed_at":"2022-07-14T08:00:49.000Z","size":1125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T13:55:10.884Z","etag":null,"topics":["apple","applescript","japlscript","java","macos","system-events"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/japlscript.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-09-25T16:54:24.000Z","updated_at":"2021-10-13T12:36:58.000Z","dependencies_parsed_at":"2022-09-26T21:51:24.467Z","dependency_job_id":null,"html_url":"https://github.com/japlscript/japlse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/japlscript/japlse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japlscript","download_url":"https://codeload.github.com/japlscript/japlse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apple","applescript","japlscript","java","macos","system-events"],"created_at":"2024-11-13T21:07:25.034Z","updated_at":"2026-05-15T21:04:23.441Z","avatar_url":"https://github.com/japlscript.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![LGPL 2.1](https://img.shields.io/badge/License-LGPL_2.1-blue.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.tagtraum/japlse/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.tagtraum/japlse)\n[![Build and Test](https://github.com/japlscript/japlse/workflows/Build%20and%20Test/badge.svg)](https://github.com/japlscript/japlse/actions)\n\n\n# JaplSE\n\n*JaplSE* is a Java API for the AppleScript System Events based on\n[JaplScript](https://github.com/japlscript/japlscript).\n\n\n## Installation\n\nJaplSE is released via [Maven](https://maven.apache.org).\nYou can install it via the following dependency:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.tagtraum\u003c/groupId\u003e\n    \u003cartifactId\u003ejaplse\u003c/artifactId\u003e\n\u003c/dependency\u003e\n```\n\nThe Maven artifacts also contain sources and javadocs. \n\nIf you are using [modules](https://en.wikipedia.org/wiki/Java_Platform_Module_System),\nits name is `tagtraum.japlse`.\n\n\n## Usage\n                           \nTo use the generated code, do something like this:\n\n```java\nimport com.tagtraum.macos.systemevents.Application;\n\npublic class SendKeyStroke {\n\n    public static void main(final String[] args) {\n        final Application application = Application.getInstance();\n        // send keystroke with no modifiers\n        // to the frontmost app window\n        application.keystroke(\"e\", null);\n    }\n}\n```\n              \nOr this:\n\n```java\nimport com.tagtraum.macos.systemevents.Application;\n\npublic class GetDownloadsFolder {\n\n    public static void main(final String[] args) {\n        final Application application = Application.getInstance();\n        final String downloadsFolder = application.getDownloadsFolder().getPosixPath();\n        System.out.println(\"Downloads folder: \" + downloadsFolder);\n    }\n}\n```\n## API\n\nYou can find the complete [API here](https://japlscript.github.io/japlse/com/tagtraum/macos/systemevents/package-summary.html). \n\n\n## AppleScript Sandbox\n\nSince macOS 10.14 (Mojave), Apple imposed a sandbox on AppleScript. Therefore\nyou may see dialog boxes requesting authorization to perform certain actions.\nAfter a while, these boxes simply disappear and there does not seem to be an easy\nway to authorize your app. In this case, you need to open the system preferences,\nnavigate to *Security \u0026 Privacy*, *Privacy*, and then *Automation*, and make\nsure your app is allowed to remote control whatever app you are trying to remote\ncontrol (see also [this article](https://blog.beatunes.com/2018/10/beatunes-on-mojave-and-windows-10-dark.html)).\n\nIf you are shipping a real app with a UI and not just a command line tool, you\nneed to customize the sandbox permission dialog. You can do so by adding\nthe key `NSAppleEventsUsageDescription` to your app bundle's `/Contents/Info.plist`\nfile. For example:\n\n    [...]\n    \u003ckey\u003eNSAppleEventsUsageDescription\u003c/key\u003e\n    \u003cstring\u003eSuperMusic uses AppleEvents to access your Music.app library,\n            e.g., to set BPM values or create playlists.\u003c/string\u003e\n    [...]\n\nApple's documentation for the keyword is [here](https://developer.apple.com/documentation/bundleresources/information_property_list/nsappleeventsusagedescription).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaplscript%2Fjaplse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaplscript%2Fjaplse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaplscript%2Fjaplse/lists"}