About osascript
osascript is a skill for controlling a Mac through AppleScript commands run from Bash. It is intended for automating macOS applications and system functions.
Key features
- 01Run AppleScript through Bash
- 02Automate macOS applications
- 03Control macOS system functions
Use cases
- 01Retrieve Finder window names
- 02Automate an application task
- 03Run a requested macOS system action
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jancbeck/ dotfiles --skill osascriptAfter installing, type/osascriptin Claude Code to confirm it loaded.
Details
From the project READMEYou can control this Mac using osascript via Bash. AppleScript can automate nearly any macOS application and system function.
Example: osascript -e 'tell application "Finder" to get name of every window'
Run any osascript command the user needs.
Comments
Markdown supported