applescript
Execute AppleScript and JXA (JavaScript for Automation) to control macOS apps, system settings, and UI automation.
Skill by malue-ai
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/malue-ai-applescript
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/applescript
What's inside
- Skill name
applescript- Description
- Execute AppleScript and JXA (JavaScript for Automation) to control macOS apps, system settings, and UI automation.
- License
- MIT
- Instructions
- 99 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# AppleScript 执行
通过 osascript 执行 AppleScript / JXA 脚本,控制 macOS 应用和系统。
## 使用场景
- 需要控制 macOS 原生应用(Finder, Safari, Mail 等)
- 需要弹窗对话框询问用户
- 需要操作系统设置(音量、亮度、Wi-Fi 等)
- 其他 Skill 内部调用
## AppleScript 常用命令
### 应用控制
```bash
# 打开应用
osascript -e 'tell application "Safari" to activate'
# 关闭应用
osascript -e 'tell application "Safari" to quit'
# 获取当前最前方应用
osascript -e 'tell application "System Events" to get name of first application process whose frontmost is true'
```
### 对话框
```bash
# 显示消息
osascript -e 'display dialog "操作完成!" with title "小搭子" buttons {"好的"} default button "好的"'
# 选择列表
osascript -e 'choose from list {"选项A", "选项B", "选项C"} with title "请选择" with prompt "你想要哪个?"'
# 选择文件
osascript -e 'choose file with prompt "选择一个文件"'
# 选择文件夹
osascript -e 'choose folder with prompt "选择一个文件夹"'
```
### 系统信息
```bash
# 获取当前 Wi-Fi 名称
osascript -e 'do shell script "networksetup -getairportnetwork en0 | cut -d: -f2 | xargs"'
# 获取系统音量
osascript -e 'output volume of (get volume settings)'
# 设置音量
osascript -e 'set volume output volume 50'
# 获取电池百分比
osascript -e 'do shell script "pmset -g batt | grep -o \"[0-9]\\+%\""'
# 获取屏幕亮度
osascript -e 'tell application "System Events" to get value of value indicator 1 of slider 1 of group 1 of window 1 of application process "System Preferences"'
```
### Finder 操作
```bash
# 获取当前 Finder 窗口路径
osascript -e 'tell application "Finder" to get POSIX path of (target of front Finder window as alias)'
# 在 Finder 中显示文件
osascript -e 'tell application "Finder" to reveal POSIX file "/path/to/file"'
# 获取选中的文件
osascript -e 'tell application "Finder" to get POSIX path of (selection as alias)'
```
### JXA(JavaScript for Automation)
```bash
# JXA 替代 AppleScript
osascript -l JavaScript -e '
const app = Application.currentApplication();
app.includeStandardAdditions = true;
app.displayDialog("Hello from JXA!");
'
# JXA 获取 Safari 标签页
osascript -l JavaScript -e '
const safari = Application("Safari");
const tabs = safari.windows[0].tabs();
tabs.map(t => t.url()).join("\n");
'
```
## 安全规则
- **不静默执行破坏性操作**:删除文件、发送邮件等必须先通过 HITL 确认
- **不操作密码和密钥**:不用 AppleScript 操作钥匙串
- **权限不足时直接打开设置**:如果操作因权限失败,调用 `open_system_preferences` 工具打开对应设置面板(如 accessibility),不要用文字描述步骤From malue-ai/dazee-small, MIT.
More from malue-ai/dazee-small
- 0.496score
deep-research
malue-ai
Conduct multi-step autonomous research on any topic.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
excel-analyzer
malue-ai
Analyze and process Excel/CSV files using pandas and openpyxl.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
competitive-intel
malue-ai
Monitor competitor websites, products, and social media for updates.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
deep-doc-reader
malue-ai
Deep analysis and Q&A for long documents (PDF reports, contracts, papers, manuals).
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
draw-io
malue-ai
Generate professional diagrams in draw.io XML format including flowcharts, org charts, UML diagrams, and network topology diagrams.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
elegant-reports
malue-ai
Generate beautifully designed PDF reports with Nordic-style typography, charts, tables, and multi-page layouts using reportlab or fpdf2.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
batch-file-converter
malue-ai
Batch convert files between formats - images (HEIC/PNG/JPG/WebP), documents (Markdown/HTML), and more using Python and system tools.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
app-scanner
malue-ai
Discover installed applications on macOS and recommend the best app for user tasks.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
content-reformatter
malue-ai
Reformat content for different platforms (WeChat, Zhihu, Xiaohongshu, Twitter, email).
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
cross-app-workflow
malue-ai
Chain multiple local apps and skills into complex multi-step workflows.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
code-sandbox
malue-ai
Secure sandboxed code execution for AI-generated scripts.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
excel-fixer
malue-ai
Auto-detect and fix common Excel formatting issues like merged cells, inconsistent types, duplicate headers, and encoding problems.
SkillDFreshness: D★ 37Claude Code +9
Signals
- Stars
- 37
- Forks
- 2
- Open issues
- 3
- Last commit (this folder)
- Feb 12, 2026 (8 months ago)
- Last release
- Feb 26, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/malue-ai/dazee-small
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from malue-ai
- 0.496score
code-sandbox
malue-ai
Secure sandboxed code execution for AI-generated scripts.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
content-reformatter
malue-ai
Reformat content for different platforms (WeChat, Zhihu, Xiaohongshu, Twitter, email).
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
app-scanner
malue-ai
Discover installed applications on macOS and recommend the best app for user tasks.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
batch-file-converter
malue-ai
Batch convert files between formats - images (HEIC/PNG/JPG/WebP), documents (Markdown/HTML), and more using Python and system tools.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
competitive-intel
malue-ai
Monitor competitor websites, products, and social media for updates.
SkillDFreshness: D★ 37Claude Code +9 - 0.496score
cross-app-workflow
malue-ai
Chain multiple local apps and skills into complex multi-step workflows.
SkillDFreshness: D★ 37Claude Code +9
Cite this page
applescript skill. Agent Mart. https://agentmart.dev/skills/malue-ai-applescript (last updated 2026-10-24)