--- id: pyobjc-framework-osakit version: "12.2.2" license: MIT license_treatment: permissive maintenance: active --- # pyobjc-framework-OSAKit — Wrappers for the framework OSAKit on macOS License: permissive · Maintenance: active · Downloads: 655.9K/mo ## What it is and what it does This package wraps Apple's OSAKit framework, which provides access to Open Scripting Architecture on macOS. It lets you execute AppleScript and other OSA-compatible scripts directly from Python, enabling automation of macOS applications and system tasks that would otherwise require shell invocation of osascript or direct AppleScript editing. The package is a thin binding layer—it does not include its own documentation, instead directing users to Apple's OSAKit documentation and PyObjC's general translation guides. It depends on pyobjc-core and pyobjc-framework-Cocoa to bridge Python and Objective-C, and supports modern Python versions (3.10 through 3.15). Use it for: - Automate macOS applications (Finder, Mail, etc.) from Python scripts without shelling out to osascript. - Build cross-application workflows that coordinate multiple macOS apps via AppleScript. - Embed AppleScript execution in Python applications that need tight macOS system integration. - Programmatically control system tasks like file operations or app launching via OSA. - Integrate legacy AppleScript logic into modern Python codebases. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to macOS's OSAKit framework, enabling programmatic control of Open Scripting Architecture (OSA) and AppleScript execution from Python. Yes, if you are on macOS and need to execute AppleScript or OSA scripts from Python. The package is actively maintained, has no known vulnerabilities, and low install friction. However, it is macOS-only and requires understanding of both PyObjC's translation layer and Apple's OSAKit API; the lack of bundled documentation means you will need to consult external resources. ## Install pip install pyobjc-framework-osakit uv add pyobjc-framework-osakit poetry add pyobjc-framework-osakit ## Installing pyobjc-framework-OSAKit Before you install: Low friction installation; actively maintained with a release 3 days ago. Depends on pyobjc-core and pyobjc-framework-Cocoa, both part of the same PyObjC ecosystem. License in practice: MIT license permits commercial and private use with minimal restrictions; suitable for most projects. Quickstart: pip install pyobjc-framework-osakit from OSAKit import OSALanguage, OSAScript script = OSAScript.alloc().initWithSource_language_('tell app "Finder" to activate', OSALanguage.defaultLanguage()) script.executeAndReturnError_(None) macOS only; requires Python 3.10 or later and a working Objective-C bridge via pyobjc-core. Verify before relying: - Whether the package includes type hints or stubs for IDE support - Performance characteristics when executing complex or long-running AppleScripts - Compatibility with non-CPython implementations beyond the listed classifiers ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 655.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags applescript python bindings, osascript from python, macos automation python, osakit python wrapper, applescript execution python, macos scripting bridge python, macos-only, applescript, system-automation [View on SkillFed](https://skillfed.io/packages/pyobjc-framework-osakit) · [View on PyPI](https://pypi.org/project/pyobjc-framework-osakit/)