IvanCampos/agents / skills/applescript-open-app
applescript-open-app
VerifiedOpen, launch, activate, or quit macOS apps by name using AppleScript or osascript. Use when the user asks to open/launch/activate/quit an app ("open Xcode", "quit Discord"), or when AppleScript-based app control is required.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.0 KB |
| agents/openai.yaml | config | 200 B |
| scripts/open_app.shexecutable | script | 575 B |
| scripts/quit_app.shexecutable | script | 394 B |
scripts/open_app.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "Usage: open_app.sh <App Name>" >&2
exit 2
fi
app_name="$*"
# Fast path: LaunchServices is typically faster than spinning up AppleScript.
if /usr/bin/open -a "$app_name" >/dev/null 2>&1; then
exit 0
fi
# Fallback preserves AppleScript behavior for names LaunchServices did not resolve.
exec /usr/bin/osascript - "$app_name" <<'APPLESCRIPT'
on run argv
if (count of argv) = 0 then error "Missing app name"
set appName to item 1 of argv
tell application appName to activate
end run
APPLESCRIPT
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |