跳到正文
cccskills
免费在 GitHub 公开

apple-notes-common-errors

Troubleshoot Apple Notes automation by classifying macOS permission denials, AppleEvent communication failures, and sync issues. Get scoped checks and recovery guidance while keeping note content, account names, and other sensitive details out of diagnostic output.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Diagnose and fix common Apple Notes automation errors. Trigger: "apple notes error".

实测评分 未实测

查看安装方法

适用场景

  • Diagnosing an AppleEvent permission denial
  • Checking why Notes.app timed out or stopped responding
  • Reviewing safe retry steps after a failed note operation

包含的文件(1)

  • SKILL.md5.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Apple Notes Common Errors

Overview

Apple Notes automation errors fall into three categories: TCC permission denials from macOS security, AppleEvent communication failures between your script and Notes.app, and iCloud sync issues that cause data inconsistency. Unlike REST APIs that return HTTP status codes, Apple Events use negative OSStatus codes. This guide covers every error you are likely to encounter when automating Notes via JXA or osascript, with tested fixes for each.

Prerequisites

  • The failed job's timestamp, opaque operation identifier, and a scoped read-only authorization test.
  • A defined owner for TCC consent and device recovery; error handling must not change system-wide privacy settings.
  • A paused write queue for incidents that may have partially completed a mutation.

Instructions

  1. Identify whether the failure is authorization, application availability, or synchronization before retrying.
  2. Capture only a redacted error classification and operation identifier; avoid dumping accounts, folders, or note content.
  3. Re-run a bounded read-only check after a supported UI or MDM recovery action.
  4. Reconcile a timed-out write against the operation ledger before retrying, then resume the queue only after owner approval.

Error Reference

ErrorCodeRoot CauseFix
Not authorized to send Apple events-1743TCC denied automation permissionSystem Settings > Privacy > Automation > enable your app
AppleEvent timed out-1712Notes.app busy, hung, or not runningApplication("Notes").activate(); increase timeout with delay
Can't get application "Notes"-2700Notes.app not installed or renamedVerify with mdfind "kMDItemCFBundleIdentifier == com.apple.Notes"
Can't get folder-1728Folder name mismatch (case-sensitive)List folders first: Notes.defaultAccount.folders().map(f => f.name())
Connection is invalid-609Notes.app crashed mid-operationPause writes, relaunch through the supported user workflow, then run a read-only check
User canceled-128Security dialog dismissed or timed outRe-run and click Allow; or pre-grant via MDM profile
Can't make Note-10000Invalid HTML in note bodyValidate HTML; strip unsupported tags before creating
Application isn't running-600App quit between callsWrap in retry with Application("Notes").activate() first

Diagnostic Script

#!/bin/bash
echo "=== Apple Notes Diagnostics ==="
echo -n "macOS version: "; sw_vers -productVersion
echo -n "Notes.app running: "; pgrep -x Notes > /dev/null && echo "Yes" || echo "No"
echo -n "Notes.app path: "; mdfind "kMDItemCFBundleIdentifier == com.apple.Notes" 2>/dev/null | head -1
echo -n "Note count: "
osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length' 2>/dev/null || echo "ERROR — check TCC"
echo -n "Folder count: "
osascript -l JavaScript -e 'Application("Notes").defaultAccount.folders.length' 2>/dev/null || echo "ERROR"
echo "Account names and TCC database entries intentionally omitted"
echo "=== Done ==="

Common Fixes

# Verify Notes is responsive after an approved relaunch
osascript -l JavaScript -e 'Application("Notes").defaultAccount.notes.length'

# Check for stuck iCloud sync
brctl status com.apple.Notes 2>/dev/null || echo "brctl not available"

Retry Wrapper for Transient Failures

// Retry pattern for -609, -600, -1712 errors
function withRetry(fn, maxAttempts = 3) {
  for (let i = 0; i < maxAttempts; i++) {
    try { return fn(); }
    catch (e) {
      if (i === maxAttempts - 1) throw e;
      Application("Notes").activate();
      delay(2);
    }
  }
}

// Usage
const count = withRetry(() => Application("Notes").defaultAccount.notes.length);

Error Handling

IssueCauseSolution
Errors persist after consent reviewClient not approved for the invoking userReview the exact client in System Settings or approved MDM policy
iCloud notes show stale dataSync unavailablePause writes and follow supported iCloud recovery guidance
Sandbox prevents database readSIP protects TCC.dbUse osascript to test access instead of direct DB query
Script works manually, fails from cronCron has no TCC contextUse launchd with AssociatedBundleIdentifiers instead

Output

Troubleshooting produces a redacted failure classification, a scoped verification outcome, and the next owner action. It must not include account names, full note/folder listings, TCC rows, or raw job input.

Examples

For -1712, pause the affected write, run a read-only availability check after the app is ready, then compare the operation identifier with the ledger before deciding whether to retry. For -1743, stop and request consent for the exact client rather than resetting all Apple Events permissions.

Resources

Next Steps

For incident response when errors cascade, see apple-notes-incident-runbook. For TCC and security hardening, see apple-notes-security-basics.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a synthetic-data CI gate for customer-owned Abridge integration code. Test consent handling, note-review handoffs, redaction, and rollback behavior with mocked vendor boundaries, without connecting CI to a live Abridge or EHR tenant.

中文简介正在准备中。当前显示英语简介。

  • Adding regression checks to an Abridge integration repository
  • Testing consent and note-release handling
  • Checking logs for sensitive data exposure
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

Triage Abridge recording, note review, Epic handoff, and access problems using observed symptoms and approved guidance. Identify the affected workflow stage, organize a minimal timeline, and prepare a redacted escalation record for the responsible team.

中文简介正在准备中。当前显示英语简介。

  • Separate recording problems from upload failures
  • Investigate note creation delays and editor issues
  • Identify the responsible team for Epic handoff failures
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

Map and review an Abridge clinical documentation workflow from consent and recording through draft review, evidence checks, edits, and final disposition. Keep clinician approval explicit, identify failure exits, and separate verified facts from tenant-specific details and pending approvals.

中文简介正在准备中。当前显示英语简介。

  • Map a clinical note workflow for a care setting
  • Check where consent and patient identity are verified
  • Review draft notes against linked evidence before sign-off
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

Audit how clinician-reviewed Abridge note sections map into Epic templates and downstream workflows. Use approved test records to document destinations, exceptions, evidence, rollback steps, and a go or no-go decision for a specific environment.

中文简介正在准备中。当前显示英语简介。

  • Checking Abridge note section mappings to Epic templates
  • Auditing a department’s approved documentation handoff
  • Preparing test evidence and a go or no-go decision
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

Review Abridge adoption and workflow value using local usage records, clinician feedback, and verified contract costs. Build an evidence based decision table covering adoption, quality, support burden, and options to expand, hold, or improve the rollout.

中文简介正在准备中。当前显示英语简介。

  • Reviewing adoption after an Abridge rollout
  • Preparing evidence for a renewal decision
  • Comparing workflow outcomes across care settings
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

Prepare a bounded support bundle for an Abridge issue using allowlisted operational details such as versions, coarse timestamps, and correlation references. Exclude recordings, transcripts, patient identifiers, credentials, and unrestricted logs, then document redactions and review details.

中文简介正在准备中。当前显示英语简介。

  • Preparing reviewed evidence for an Abridge support case
  • Documenting redactions and excluded data
  • Collecting approved operational details for an incident
jeremylongshore/tons-of-skills-marketplace28682026年10月23日 更新

查看 jeremylongshore 的全部技能

报告此技能的问题