{"id":20134244,"url":"https://github.com/japlscript/japlfind","last_synced_at":"2025-09-01T03:39:08.641Z","repository":{"id":57727423,"uuid":"407877206","full_name":"japlscript/japlfind","owner":"japlscript","description":"Java API for Apple's Finder (macOS)","archived":false,"fork":false,"pushed_at":"2022-07-14T08:02:11.000Z","size":791,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T15:42:59.360Z","etag":null,"topics":["apple","applescript","finder","japlscript","java","macos"],"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-18T14:07:09.000Z","updated_at":"2021-10-13T12:35:36.000Z","dependencies_parsed_at":"2022-09-26T21:51:24.097Z","dependency_job_id":null,"html_url":"https://github.com/japlscript/japlfind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/japlscript/japlfind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplfind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplfind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplfind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplfind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japlscript","download_url":"https://codeload.github.com/japlscript/japlfind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japlscript%2Fjaplfind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273070142,"owners_count":25040222,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","finder","japlscript","java","macos"],"created_at":"2024-11-13T21:07:57.245Z","updated_at":"2025-09-01T03:39:08.613Z","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/japlfind/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.tagtraum/japlfind)\n[![Build and Test](https://github.com/japlscript/japlfind/workflows/Build%20and%20Test/badge.svg)](https://github.com/japlscript/japlfind/actions)\n\n\n# Japlfind\n\n*Japlfind* is a Java API for the Apple Finder app (macOS) based on\n[JaplScript](https://github.com/japlscript/japlscript).\n\n\n## Installation\n\nJaplfind 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\u003ejaplfind\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.japlfind`.\n\n\n## Usage\n                           \nTo use the generated code, do something like this:\n\n```java\nimport com.tagtraum.macos.finder.Application;\n\npublic class StartupDisk {\n\n    public static void main(final String[] args) {\n        // get application\n        final Application application = Application.getInstance();\n        final Disk startupDisk = application.getStartupDisk();\n        System.out.println(\"Startup Disk: \" + startupDisk.getName() + \", Format: \" + startupDisk.getFormat());\n    }\n}\n```\n\n## API\n\nYou can find the complete [API here](https://japlscript.github.io/japlfind/com/tagtraum/macos/finder/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%2Fjaplfind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaplscript%2Fjaplfind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaplscript%2Fjaplfind/lists"}